High Memory Usage

BlitzMax Modules Forums/MiniB3D/High Memory Usage

Hi there, i've been playing around with the klepto version of minib3d. Using the physics demo it would appear that every 10 cubes added equals about 2-3 megs of added memory usage.

I did another experiment and added 5000 cylinders to a scene which added about 250 meg memory usage.

This seems horrendously high. Do these figures sound reasonable? Whats all this memory being used for?

yes, there is a bug in the shadowsystem which reserves an array:Int[65000] for each created object.

If you don't use shadows (which are horriebly slow due this lag) you could open TMesh.bmx and change the Field tris:TShadowTriangle to this Field Tri:TShadowTriangle[0]

This should solve the problem.

Ok thanks Klepto.