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
Attachment | Size |
---|---|
![]() | 160.98 KB |
Sorry that I edited this post so often, but I have a similar problem.
I found out that (even on mobile/android!) the VuforiaBehaviour Script on the ARCamera is allocating 1.3MB to the GC every frame (If I try optimize_speed mode, it's 1.0MB). It comes from Texture2D.GetRawTextureData(). Even if I disable video background. Is that normal??
Regards