Jump to content
  • Advertisement
Sign in to follow this  
SparkyFlooner

Loading resources in separate thread

This topic is 4743 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

Advertisement
I don't see any reason that you couldn't if you really wanted to, but unless you're on a machine that's really designed to handle multiple threads in that fashion, I don't think you'd get a very big performance increase.

Share this post


Link to post
Share on other sites
It's not for performance. It's for a level loader. One thread loads resources, the other shows the 'loading' screen with a status bar that shows the status of the loader thread.

But if DirectX can handle it, then I guess I'm good to go.

Do I need to create the device with the D3DCREATE_MULTITHREADED flag?

Share this post


Link to post
Share on other sites
Quote:
Original post by SparkyFlooner
Do I need to create the device with the D3DCREATE_MULTITHREADED flag?
Yes. The docs say that you get a slight performance loss, but It's completely unnoticible in every app I've written, so don't worry about it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!