I have a multiplayer game using p2p / udp.
Should the messsage receiving loop be in the main game loop or running on a separate thread?
multiplayer network in separate thread?
Page 1 of 11 Replies - 551 Views - Last Post: 18 August 2012 - 10:31 PM
Replies To: multiplayer network in separate thread?
#2
Re: multiplayer network in separate thread?
Posted 18 August 2012 - 10:31 PM
Ideally in a separate thread. With today's multicore processors, you want to try and take advantage of the otherwise wasted processor power at your disposal. It comes with it's own headaches though, so make sure you learn how to control it properly.
However, if the message loop is cheap, it may not be worth the effort. You'd have to determine that.
However, if the message loop is cheap, it may not be worth the effort. You'd have to determine that.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|