Significant delay when changing scenes

I am getting a significant delay when changing scenes - at least 1 second delay after clicking the button.

I have looked at the code and it looks like director loads in my new scene before it changes scene.

I am wondering if the problem is due to a flaw in how I set up each of my scenes. I currently display a series of panels off screen each of which are comprised of about 10 separate images and up to this many buttons on each. So effectively I am displaying possibly 100 graphics off screen at the start of the code in the new scene.

I am not sure what the alternative is to this. Would there be any advantage to setting all these off screen graphics to not visible or would I still get the delay? I guess I should give this a go to see for myself but if in the meantime anyone can give me some tips how best to deal with this it would be much appreciated.

For example, perhaps loading the images only when I need them is a better idea? i.e when the user clicks button to display the panel, my code would only at this point display the imagery using displayImageRect etc.

Any advice much appreciated as this delay is the final issue before I submit my game. [import]uid: 7863 topic_id: 7293 reply_id: 307293[/import]

I dont think its a Director Class problem, we have about 6 fullscreen images which are cached during
the start of our game. When I press the play button, it realy needs time that the level pops up. I think
its the normal loading delay of the images we have to accept. [import]uid: 12632 topic_id: 7293 reply_id: 25630[/import]

Thanks Michael

Yeah I thought it must be something like this and not a fault of director but thought this forum was a good place to ask for tips on reducing this delay.

I am going to have a go at just displaying my main background image initially and then calling a function after a delay of 250 milliseconds to display/cache all the other graphics.

I wondered if rather than have this delay when all these images are being loaded off screen at once when a scene is loaded, if instead I should just load the images when the graphic needs to appear on screen however this would result in calling the loadImageRect every time this image is being displayed. I am sure however I read somewhere that if the image has already been loaded then it will not have to load again.

I appear to get the delay every time I change to this particular scene and not just the first time so I am assuming that the images are not cached between scenes? [import]uid: 7863 topic_id: 7293 reply_id: 25634[/import]