Log in or register to post comments

Android Build starts with a delay of 25+ secondes due to large database

June 17, 2020 - 3:08pm #1

Hi there,

my app builds fine with no errors but starts extremely slow (25sec until camerafeed displayed). I narrowed the problem down to the database (100 targets).

If I use a small database everything works fine. Also the problem just occurs for android. In iOS eversything loads nice and quick.

Does anyone have an idea how to speed this up? There must be a way...

Unity 2018.4.23

tested on Google Pixel 2 XL

Thanks for help and best, Friedemann

Android Build starts with a delay of 25+ secondes due to large database

December 19, 2020 - 8:30am #6

Hi there!

We are going to release the app in several days. Our app has over 1.5 million installs, so this issue is vital for our app.



After Vuforia initialization (which lasts several seconds), the following method is called for each target. Our app contains about 100 markers.

Here is the part of log:



Found Trackable named boost_04 with id 99

UnityEngine.Debug:Log(Object)

Vuforia.StateManager:AssociateTrackableBehavioursForDataSet(DataSet)

Vuforia.DataSet:Load(String, StorageType)

Vuforia.DataSet:Load(String)

Vuforia.DatabaseLoadARController:LoadDatasets()

Vuforia.VuforiaARController:StartAfterInitializationCompleted()

Vuforia.VuforiaARController:UpdateState(Boolean, Boolean)

Vuforia.DigitalEyewearARController:Update()

System.Delegate:DynamicInvoke(Object[])

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaBehaviour:Update()



Start Vuforia Engine

UnityEngine.Debug:Log(Object)

Vuforia.VuforiaARController:StartVuforia(Boolean)

Vuforia.VuforiaARController:StartAfterInitializationCompleted()

Vuforia.VuforiaARController:UpdateState(Boolean, Boolean)

Vuforia.DigitalEyewearARController:Update()

System.Delegate:DynamicInvoke(Object[])

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaBehaviour:Update()



All this full procedure takes about 60 seconds on Android release build (aab-file).

Herewith, the same process on developer build (Android apk file) takes several seconds. As well as on IOS developer and release builds.



Unity Version 2019.2.14.f1

Vuforia version 8.5.9

Could anyone please help?

Android Build starts with a delay of 25+ secondes due to large database

June 25, 2020 - 1:51am #5

Hi,

Could you please provide us a logcat dump with VE initializing?

Thank you.

Vuforia Engine Support

Android Build starts with a delay of 25+ secondes due to large database

June 19, 2020 - 8:55am #4

I also updated Vuforia to 9.2.7 but it did not solve the problem. The startup still takes 20+ seconds.

Thank you for your help and best, friedulia

Android Build starts with a delay of 25+ secondes due to large database

June 19, 2020 - 2:48am #3

Dear Support-Team,

thanks for your reply. Unfortunately the method described in the link does not fix it.

I set all the loggings to "none" in the Player settings.

But in the link it does not seem that there is a proper workaround.

Can I update to Vuforia 9.2.7 within Unity 2018.4.23?

Any other ideas?

Thank you very much for your help.

 

AttachmentSize
Image icon Unity_2018_PlayerSettings.jpg147.04 KB

Android Build starts with a delay of 25+ secondes due to large database

June 18, 2020 - 4:10am #2

Hi,

I believe you are encountering a known issue. A dev reported on the forum a performance different between ARM v32 and v64, the ladder being slower. ( around 20 sec slower)

If this is the use-case, we addressed it with 9.1 but if you are using an earlier version of Vuforia, please go over following workaround: https://forum.unity.com/threads/huge-fps-drops-from-60fps-armv7-to-25-30-fps-arm64-unity-2017-4-20.682018/#post-5013077

Thank you.

Vuforia Engine Support

Log in or register to post comments