Separate thread for rendering

Started by
2 comments, last by Mattman 18 years, 10 months ago
Is there any drawback to make separeta thread just for rendering (mostly for "linear-DOS" programming). I write code so that all global varables is used only by render thread? Thanks, Zaharije Pasalic
Advertisement
Well does the rendering thread also include the buffer flipping? If not, there's a chance that the backbuffer could be flipped to the screen in the middle of a scene rendering, making everything partially drawn to the user.
Yes. Everything is in one thread "from Clear to Present". I used threading just to avoid message-pump and to migrate to old-dos-linear style of programming.

I am interested is there any performance penality?

Thanks,
Zaharije Pasalic
I've never tried this before...so I can't answer your question, sorry :-P If you do your coding right, I can't imagine that it would be very difficult to test the differences between linear and threaded to see what works best for your game.

This topic is closed to new replies.

Advertisement