🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

threads in multiplayer ?

Started by
1 comment, last by granat 23 years, 3 months ago
Is it possible to make an effective multiplayer game in DirectPlay without using a thread for the network part ?
-------------Ban KalvinB !
Advertisement
Can you be more specific about your question? What do you mean exactly?

LostLogic
webmaster@lostlogic.com
www.lostlogic.com
Check out our new book on Multiplayer Game Programming!

LostLogicwww.GamerOutfit.comXBox 360 Community Games Reviews and NewsExisled - 2D/3D Shooter for XBox 360

It depends on how fast your network code is. If there''s a noticable pause when packets come in then you either need to optimize the code further or go to another thread. By sending messages ASYNC the only pause is putting together the packet.

For Tombstone: Vendetta I use only one thread. The server''s only purpose is to process messages so there''s no need for another one. The client also spends practically 0 msecs processing any message so it only uses one thread as well.

You can try it out to see how well it works at
http://therabbithole.redback.inficad.com/outworld/

You''ll just need to sign up for a free account.

Ben

This topic is closed to new replies.

Advertisement