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 6112 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!