High Memory Usage

BlitzMax Forums/MiniB3D Module/High Memory Usage

KronosUK(Posted 2008) [#1]
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?


klepto2(Posted 2008) [#2]
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.


KronosUK(Posted 2008) [#3]
Ok thanks Klepto.