How much memory does Geometry use? (Mobile)

Hi,

I have an .obj file that has around 250k verts and ways in about 30mb on disk.

What would the memory footprint be in system memory when running the game?

Thanks,
David

i think there are a lot of variables that would determine this. A few off the top of my head are 1. types of shaders used 2. texture sizes 3. model position relative to camera (what is culled, etc.) i think a way to start finding the answer would be to import the obj without any mats, drop it into a scene, press play and check out the profiler.

@droderick: Shaders and texture sizes don't have anything to do with geometry size, nor does the relative position of the camera.

1 Answer

1

It depends. How many triangles? UV sets? Normals? Tangents? Vertex colors? A vertex by itself, without considering any of the other things mentioned, is 3 floats, so 12 bytes. A triangle index is 2 bytes, uv is 8 bytes, normal is 12 bytes, tangent 16 bytes, color 4 bytes.