How to make loading progress before game scene

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
amdmanz
Posts: 2
Joined: Tue Dec 08, 2009 1:58 am

How to make loading progress before game scene

Post by amdmanz »

Hi everyone

I'm have develop action game and i have a problem that my scene game have a large size for memory and then. I'm looking how to loading that data to memory before game is running.

Anybody please help me, Thanks

PS. Executeme i'm not good in english.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

did you check out the demo in examples directory?
Image
Image
instinct
Posts: 87
Joined: Sat May 10, 2008 3:42 pm

Post by instinct »

Basically what you want to achieve is to load everything into memory before rendering. You can do this by simply keeping a boolean bLoading, which will be TRUE by default and FALSE when all the loading is done. In your game loop you can make a call to a function showing the loading screen, when bLoading is TRUE of course...thats how im doing it. I bet there is a more efficient way to do it though
amdmanz
Posts: 2
Joined: Tue Dec 08, 2009 1:58 am

Post by amdmanz »

Yes, i was checked,but. I don't understand what example 's subject refer to my question. Can you tell me more?. Thanks
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Preload by filling the mesh and texture caches before you start the game.
Simply call getMesh and getTexture for each resource, but ignore the return value. Later when you call getMesh or getTexture in-game, the resources will come from the mesh and texture caches and not the disk.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply