[Question] How do you unload everything to save memory?

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.
tewe76
Posts: 42
Joined: Wed Jan 21, 2009 10:56 am
Location: Spain
Contact:

Post by tewe76 »

You could call device->drop(); and then create a new device
for your new map.
Is this really a good idea if you don´t need to preserve nothing? Wouldn't the screen flash or trying to return to the original resolution (speaking on fullscreen mode), or something? Is it a safe method? If it is, it's a simple solution for sure 8)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You would see the window disappear and then reappear i would imagine so it's not that elegant really..
Image Image Image
tewe76
Posts: 42
Joined: Wed Jan 21, 2009 10:56 am
Location: Spain
Contact:

Post by tewe76 »

So this is a no-no, then :roll:
lokiare
Posts: 40
Joined: Wed Feb 04, 2009 5:40 pm

Post by lokiare »

On the port I'm using that just crashes the PSP. So I can't really use it.
Post Reply