Log in or register to post comments

Vuforia slow intialization

August 1, 2018 - 11:40am #1

We were using Vuforia 7.0.50 on our Android app for target recognition. On Google Pixel devices, initialization was just a couple of seconds. But on Samsung Galaxy S8 and Note 8, initialization was talking about 4-5 seconds.

We tried upgrading to Vuforia 7.2.0, but initialization was much worse on all devices. It is taking about 8 seconds to show up the camera stream on Note 8 and like 4 seconds on Google Pixel.

This is a major concern for us since Samsung devices compose a big part of the market and of our users devices. Is anyone else experiencing this?

Vuforia slow intialization

August 25, 2018 - 8:27pm #9

@metabit

Thank you for the useful information. I understand now. 

Daverin

 

 

Vuforia slow intialization

August 20, 2018 - 9:42am #8

Hello @daverinnadesan18,

daverinnadesan18 wrote:

Why is it fetching the device profile on every application start? Why not fetch it only on first run?

The release for support of new devices using features driven by Vuforia VIO (not ARKit or ARCore) is not aligned with Vuforia Engine releases - we can release a new device at any time. As supporting a new device also requires an updated device profile, we enabled the option to synchronously check for this during Vuforia.init().

This was a convenience feature for developers who wanted to take advantage of newly supported devices as they became available.

daverinnadesan18 wrote:

How do I disable this feature and what would be the implications?

To disable it, please see the following article (under Vuforia Engine Initialization, about 2/3 down): https://library.vuforia.com/articles/Solution/how-migrate-vuforia-7_2.html

The implication is that if you are running features that use Vuforia VIO (Ground Plane, Model Targets, Extended Tracking), your device may not receive an updated device profile *before* camera start. This could cause tracker initialization failure (in the Ground Plane case), or a degraded user experience on first app run.

Thanks,

Vuforia Engine Support

Vuforia slow intialization

August 18, 2018 - 10:56am #7

Hi medabit.

I tried what you suggested and it worked. Why is it fetching the device profile on every application start? Why not fetch it only on first run?

How do I disable this feature and what would be the implications?

Thanks for your help

Daverin 

Vuforia slow intialization

August 9, 2018 - 10:44am #6

Hello,

daverinnadesan18 wrote:

This means that it is not to do with the "Vuforia Engine Initialization" mentioned.

Apologies, but I'm not following your logic. How did you come to this conclusion? Which other version of Vuforia are you comparing this to?

The new, synchronous initialization method means that Vuforia will not complete init until it can reach the device profile service, or time out. I would suggest you try running your app with the device in airplane mode. The Vuforia SDK should detect that there is no network connection and thus not attempt to contact the server. In theory, if the delay is related to the new synchronous initialization, it should be gone.

Thanks,

Vuforia Engine Support

Vuforia slow intialization

August 9, 2018 - 6:28am #5

Vuforia v7.2.24

Unity 2018.2.0f2

Hi I am experiencing the same problem after upgrading to v7.2.24 with my Samsung S9+. Initialization time used to be 0.5 seconds and is now 4-5 seconds on every application start (not just the first one).

This means that it is not to do with the "Vuforia Engine Initialization" mentioned.

I also deleted all datasets to ensure that they are not the issue.

I am not sure if this issue present only with samsungs. 

Vuforia slow intialization

August 8, 2018 - 3:01pm #4

I wonder if the slow load time has something to do with the new auto load and activate databases in 7.1.  If you were manually loading and activating databases prior to 7.1+ , and your database had a decent number of trackables, you'd see a difference in load time after upgrading.  Refer to the migration docs if you need to know how to handle manually loading again.

Vuforia slow intialization

August 4, 2018 - 6:19pm #3

This is also happening for me on Android. Noticed it using Unity 2018.2 and Vuforia 7.2.2. On Android, it takes at least 4-5 seconds to start up the app. Previous versions of Unity/Vuforia would only take a second or so to load.

 

iOS is unaffected as the same app with the same versions of Unity/Vuforia loads instantly and fine.

Vuforia slow intialization

August 2, 2018 - 1:32pm #2

Hello,

It is unclear to me why you'd see such differences in the initialization time on either release.

Please note that in SDK 7.2, we have introduced some changes to the initialization process that may impact the flow of your application. Please see the "Vuforia Engine Initialization" section for more details: https://library.vuforia.com/articles/Solution/how-migrate-vuforia-7_2.html

Thanks,

Vuforia Engine Support

Log in or register to post comments