Memory problem.............

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gamerdez
Posts: 9
Joined: Mon Nov 10, 2008 8:29 am

Memory problem.............

Post by gamerdez »

Hi,

i am facing a problem with my game........i have made a game using bsp levels created in GTKRadiant. the problem is that the game seems to be very heavy on memory. it takes 1.6 GB of RAM. the game has 3 bsp levels. Can somebody tell me whether its a graphics problem or a coding problem....
jontan6
Posts: 278
Joined: Fri Jun 13, 2008 5:29 pm

Post by jontan6 »

maybe coding problem. i have an application with more 500k polys in 1 scene, but takes only 600mb ram

im using xp btw
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Do you use all 3 levels at once? If not do you clear them out of memory when they're not needed? and the textures too? Are there any other large amounts of memory which you're creating yourself?
Image Image Image
gamerdez
Posts: 9
Joined: Mon Nov 10, 2008 8:29 am

Post by gamerdez »

yes... i have a problem with clearing the memory after each level....any tips on how to do so????
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Search the forum for things like removeMesh and removeTexture. They're functions of IMeshCache and IVideoDriver, respectively and they allow you to clear out memory. IMeshCache also has clearUnusedMeshes and clear function to remove all unused or all meshes, respectively.

But you've got to be careful about removing things that are currently in use so finding some previous discussions should hopefully give you some help on that.
Image Image Image
gamerdez
Posts: 9
Joined: Mon Nov 10, 2008 8:29 am

Post by gamerdez »

thx a lot........will try it out n let u know............thx again......
Post Reply