Jump to content
  • Advertisement
Sign in to follow this  
alphatrak

XNA - How to separate rendering from the message loop thread?

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

I don't know if this is even possible but, I have an XNA windows game that runs in a window (not a fullscreen window), and the behavior that I would like is that, when I click the title bar with the mouse, I would like the game to keep rendering/playing. As is, when clicking the mouse down on the title bar, the Update and Draw functions are no longer called, halting the game in it's tracks. Is there a way to put update/draw in a separate thread than the message loop? Or is there another way this can be accomplished? Or is this something beyond XNA entirely? Seems like it should be possible since in an online game, allowing everything to stop for some time could result in several issues, including loss of connection. Sorry if this has been answered before. I couldn't find a similar post via search. Thanks

Share this post


Link to post
Share on other sites
Advertisement
I realize I should post in Microsoft's Forums. Guess that Sticky titled "XNA - NeHe style (Projects 1 - 10) Source Code" (written by moderator JWalsh) doesn't belong in this forum either. Thanks anyway.

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!