I am developing an offline Vuforia app for the HoloLens 2 that requires a delayed initialization. I am able to force Vuforia to wait until I call VuforiaRuntime.Instance.InitVuforia(); However, on the HoloLens, it takes 13 seconds for Vuforia to initialize and finish its tasks. During this time, the entire screen goes blank and I am unable to see any holograms or do anything. In the Unity editor, initialization takes a fraction of a second.
On older forum posts, there is a line of code (VuforiaUnity.SetHint(VuforiaHint.HINT_ASYNC_FETCH_OF_LATEST_CALIBRATION, 1);) that users are told to use, however, Unity does not recognize the VuforiaUnity namespace and the link to the documentation results in a 404.
What can I do to significantly lower the load times for Vuforia initialization? I am using Vuforia 9.8.8 and my image target database only has 8 targets.
Hello,
I believe the forum post you found is related to this text, which is in the following article: https://library.vuforia.com/articles/Solution/How-To-Migrate-a-Unity-Project.html
"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 Engine: VuforiaUnity.SetHint(VuforiaHint.HINT_ASYNC_FETCH_OF_LATEST_CALIBRATION, 1);"
I'm a bit confused from your comment about Unity not recognizing the namespace as this API is clearly documented: https://library.vuforia.com/sites/default/files/references/9.8/unity/classVuforia_1_1VuforiaUnity.html
Thanks,
Vuforia Engine Support