Log in or register to post comments

Long delay during runtime initialization

November 23, 2018 - 4:48am #1

Vuforia: 7.5.26

Unity: 2018.2.16f1

Vuforia runtime initialization on Hololens takes about 10 seconds. Specifically,  the call to VuforiaRuntime.InitVuforia() blocks the main thread of Unity for 10 seconds. Thus, the whole screen turns black and the user has to wait without knowing what's going on.

Can this be fixed?

Long delay during runtime initialization

November 29, 2018 - 3:11pm #4

Hello,

Thanks for pointing out the documentation error. We'll get that corrected.

The Unity documentation is correct: https://library.vuforia.com/content/vuforia-library/en/reference/cpp/namespaceVuforia.html#ad04be62fec7fdd0642863dcde12cf5f6a201a103ae65b6cb8ca1390d01ad7a23b

"To enable asynchronous fetching set the hint value to 1. To disable asynchronous fetching set the hint value to 0. Default is: 0."

-Vuforia Engine Support

Long delay during runtime initialization

November 29, 2018 - 2:23am #3

Thanks. We will try this out. Our Hololens application usually does not have internet in the production environment.

 

Interestingly, the Vuforia migration guide and the one for Unity differ in that the latter claims

VuforiaUnity.SetHint(VuforiaHint.HINT_ASYNC_FETCH_OF_LATEST_CALIBRATION, 1);

and the other

Vuforia::setHint(Vuforia::HINT_ASYNC_FETCH_OF_LATEST_CALIBRATION, 0);

Is this correct? It's a bit confusing.

Long delay during runtime initialization

November 27, 2018 - 10:43am #2

Hello,

Vuforia Engine 7.2 has made some changes to the initialization process that may impact the flow of your application. The default initialization behavior of Vuforia Engine 7.2 is to download the latest device profile in order to deliver the best experience on the device.  Depending on the speed of the user's internet, this could add several seconds to application load. This only occurs the very first time the user launches the app and will not impact application loading in future launches of the app.

It is strongly recommended to allow the Vuforia Engine to fetch the latest device profile. Developers looking to disable this behavior should set the following hint before initializing Vuforia: VuforiaUnity.SetHint(VuforiaHint.HINT_ASYNC_FETCH_OF_LATEST_CALIBRATION, 1);

Native migration guide: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/how-migrate-vuforia-7_2.html

Unity migration guide: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Migrate-a-Unity-Project.html

Thanks,

Vuforia Engine Support

Log in or register to post comments