optimize loading materials between scenes

Hi everyone,

I finished demo of my game and now i’m triyng to optimize load time between scenes (40 secs). The problem is in materials. If I quit all the materials load time is fast. It’s not a problem with size of textures (128x128, 64x64)

The problem is… if I’m in a scene and changue to another the engine load again the same materials, althoug the new scene have the same models and materials linked.

Is it possible if two scenes share materials not load again?

This is the game http://valkibge.wordpress.com/ Demo will be available in 24th of june :slight_smile:

Forgive my poor and catastrophic english :slight_smile:

Well, the solution at the moment, has been to put all the interiors and exterior in the same scene.

If you don’t do this, when you go to a house for first time, Game engine comes back to load all the materials another time.

you can try to use the libload functionality, and load the meshes when entering the house.

here is the link to the api
http://www.blender.org/documentation/blender_python_api_2_70_5/bge.logic.html?highlight=libload#bge.logic.LibLoad

Thanks, I will test this tips in the next Alpha. :slight_smile: