Download

Estimating memory usage of Procedural Mesh Component

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.

did u try Window>Statistics , primitive stat will show tris count for each model and it resource, texture stat for memory consumption but u have to hit refresh while running the project.

Window->Statistics only shows data for static meshes. So my procedural meshes aren’t listed there.

PS. I am not using any textures at the moment. All colors are specified using material instances

Yeah, Window>Statistics wouldn’t work here. Following this thread.