Hello,
We recently upgraded our project (Hololens 2) from Unity2019LTS (that used the Legacy XR system) to Unity 2021.3.10f1 (using the new XR plugin system and all recomended setting by MRKT2).
We noticed a big increase in memory consumption (~500Mb) at startup. The same Hololens2 app that used to take ~400Mb was now using ~900Mb at startup, which was pretty concerning.
For context, one of the causes was that MRTK2 using OpenXR was including other platform’s controllers (material, textures, 3d models) in the Default Hololens2 Profile, as well as other unecessary things (for us). After we prunned things to target just Hololens2, it saved us >200Mb.
Using the memory profiler, we now see just a slightly bigger “used memory” (~50MB) which we are ok with.
The main problem we have is that, in total, we are still seeing a >300MB difference in used memory to which the main contributer is “Untracked Memory”. In the following screenshot we captured a side-by-side comparison in the memory profiler between Unity 2019/LegacyXR (left) and Unity2021 (right).
As you can see, “untracked memory” almost doubled with the update (225.7mb to 443mb).
Is this normal? The difference is pretty significant and we are wondering why this happens.
Thank you
