- Home /
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 deter$$anonymous$$e 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.
Answer by Eric5h5 · Mar 27, 2012 at 07:24 PM
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.
Your answer

Follow this Question
Related Questions
Memory footprint worries - Web/Standalone vs iOS 0 Answers
Unexpected memory overhead of textures on iOS 0 Answers
Unity3D app crashes out after error "Warning -> ApplicationDidReceiveMemoryWarning' 1 Answer
Unity IOS(IPad2) auto exit app after loaded too many images 1 Answer
Don't allocate memory in Update loops on iOS. - How strictly should this be followed? 2 Answers