"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Heavy GC allocation

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,

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?

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.

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

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,

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,

Attachment