Archived

This topic is now archived and is closed to further replies.

edwinnie

MultiThreading in games

Recommended Posts

okok, this is a simple qn: do u all use the main application thread for rendering, or do u use a separate thread for rendering? thx

Share this post


Link to post
Share on other sites
erm...pardon me
ur yes implies which part?

1)do u all use the main application thread for rendering, or
2)do u use a separate thread for rendering?

thx alot!

Share this post


Link to post
Share on other sites
You could, but I don''t think it''s done very often. At least I don''t.
You would create threads for things that need to happen at the same time, like sounds/music.

Share this post


Link to post
Share on other sites
not for rendering but anyone use microthreads, im just reading through gems 2 and it looks like a neat technique (but not for rendering i wouldn''t think) anyone ever use it? only example i have ever seen is in gems.

Share this post


Link to post
Share on other sites
I have a kernel that runs tasks, and one of them is the renderer. I could have it set up so each major task runs in it''s own thread (I.E. the renderer, the music manager, the window, input, ect) and everything else is run right there when update is called. This way none of the major ones are affected by the other major ones, and the small ones really don''t care.

Share this post


Link to post
Share on other sites