Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have a rendering thread which does all my rendering of the game, is it possible to connect to a server at the same time on the same thread as the render? Would it overload, would it slow it down? Or should I create a new thread for the connection?

Any good advice?

share|improve this question
1  
"is it possible to connect to a server at the same time on the same thread as the render" yes. "Would it overload" it depends. "would it slow it down", it would run slower than without it. "Or should I create a new thread for the connection" up to you, I'd say yes. This is something you should test out with your code. That will tell you everything you need to know. – Byte56 Apr 25 at 20:26
As a general note, it is always a good idea to create modularized code, so even if you start out doing things on one thread and later realize it causes issues, it's easier to switch the multiplayer part to a new thread. – maul Apr 25 at 21:02

closed as not constructive by Byte56, Anko, bummzack, msell, Josh Petrie Apr 26 at 17:45

As it currently stands, this question is not a good fit for our Q&A; format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

Browse other questions tagged or ask your own question.