Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Keattikorn

How do i load separate game resource such X file?

This topic is 6191 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

While screen is rendering (in render func) ,then need to change to another big scene.It need to preparing resource (such as load X file) to render new scene. How to ??? I trying to go to sub function to load resource when global variable indicate it is going to new scenem,but it not work. It work like rendering + loading at the same time.(cause slow mouse pointing)

Share this post


Link to post
Share on other sites
Advertisement

You can do this by making use of multi-threading (i.e. have a separate resource loading/management thread) that executes ''alongside'' your main rendering code. Of course this presents further complications along the lines of resource sharing, mutual exclusivity, object sharing, etc., etc.

I think the best approach is to simply pre-load as much as possible so that you have the majority (if not all) of the next scene in memory and ready for display.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!