By gsylvain
on Tue, 08/28/2018 - 15:49
I'm working on a mobile game using Vuforia. We are experiencing poor performance although having very few assets.
After running the profiler, I can see that VuforiaBehaviour.Update is generating 1.2 MB of alloc *per frame* + 7ms. GC.Alloc has 113 calls.
This is unacceptable. Does anyone know how to fix this?
Unity 2018.1.6f1, Vuforia 7.2.24
Hello gsylvain,
Hello gsylvain,
At what point in the app life cycle are you seeing this? Does this happen right away, or after running the app for a while? Which features are you using and how many targets are you detecting and/or tracking when you see this. Are you using Extended Tracking?
VuforiaConfiguration
VuforiaConfiguration
I tried again using a fresh
I tried again using a fresh new project. I added the strict minimum to work with vuforia. There you go, 22ms per frame in my pc editor.
Please help, this is a critical issue for the memory management, battery and fps in general. Thank you.
@Strasza any update?
@Strasza any update?
I'm currently investigating
I'm currently investigating and discussing with the team to fully understand the expectations here. I'll update as soon as I have more information.
Thanks,
Vuforia Engine Support
I wait for this answer to
I wait for this answer to
thanks
Hello again,
Hello again,
You are right, the GC alloc
You are right, the GC alloc is way lower on the mobile, from 1.2 MB to 2.0 KB. IMO, any kind of steady allocation per frame means that something isn't properly done and should be fixed... would you mind looking at it?
Hello again,
Hello again,
It is unlikely we will address the higher allocation numbers in the editor as it is purely meant as a prototyping and testing tool and not representative of a final product. I'm glad to see that you are getting the better numbers when running it on device.
Thanks,
Sorry to wake this thread up
Sorry that I edited this post so often, but I have a similar problem.