Log in or register to post comments

Android aab-build starts in 60 seconds!

December 19, 2020 - 8:34am #1

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 aab-build starts in 60 seconds!

December 23, 2020 - 6:22am #4

Hi there!

We have fixed the issue with a long start of the app.The issue was in Unity and Vuforia both.All assets included into aab build were compressed, and the decompression algorithm in Unity seems to be very slow. The targets database was compressed and Vuforia was re-reading it every time during its initialization. So, what we did was not allowing the assets to be compressed in aab build.The difference between aab and apk builds was that assets were not compressed in apk.We have also updated Vuforia SDK to 9.1.7.

Android aab-build starts in 60 seconds!

December 21, 2020 - 6:54am #3

Hi there!

There is a delay on Vuforia Start after its initialization.

We did turn off logging in Player/Stack Trace, but it didn't help.

Do you have any more ideas?

Android aab-build starts in 60 seconds!

December 21, 2020 - 6:01am #2

Hi,

The issue might be related to IL2CPP build on Android, we noticed that sometimes loading the database takes more time than expected.



In order to address this, please turn off the logging in Player/Stack Trace/. More info here: https://forum.unity.com/threads/huge-fps-drops-from-60fps-armv7-to-25-30-fps-arm64-unity-2017-4-20.682018/

Thank you.

Vuforia Engine Support

Log in or register to post comments