Sign in to follow this  
alphatrak

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this