Jump to content
  • Advertisement
Sign in to follow this  
Rozik

Multithreading

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

hello everyone i am trying to write a real simple multithreaded application but everytime i start an additional theard the main thread gets stuck or something so i cant leave the programm anymore is there anything i have to consider when multithreading with maybe presentparameters or filling the windowsclass thx for any hints you can give me

Share this post


Link to post
Share on other sites
Advertisement
I think you'll get a better answer on this from the 'General Programming' forum...

I suggest you read through "GDC 2006: Coding for Multiple Cores" from the recent GDC.

Regarding Direct3D (which you seem to make a reference to?)... You'd need to create your device with D3DCREATE_MULTITHREADED to make Direct3D thread-safe. Not doing this and then accessing from multiple threads is just A Bad Thing™ [smile]

Having said that, you should still architect your program such that all Direct3D access is done from a single thread. The aforementioned flag adds a substantial performance penalty that can easily be avoided with good design.

hth
Jack

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.

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!