I’m working on a VR project where a large number of procedural meshes of varying sizes are created at runtime. I’m wondering if it is possible to estimate how much each of these meshes consume. The meshes contain a varying number of vertices ranging from around 1000 to almost 2,000,000.
I’m running on Quest which imposes a hard memory limit of ~2.6GB. I want to be able to estimate the total cost of these meshes to make sure I stay within limits. My estimate so far has been to add the size of the vertices, normals, etc. that I pass to the PMC create function and whatever copy is created within these functions. However, my numbers are significantly off. Does anyone know how I can reliably calculate memory usage?
Not sure if this is the correct sub-forum, please let me know if I need to move this elsewhere.