#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    12
    Rep Power
    0

    Large Scale Server


    I've written a multi-threaded server for a small game i'm working on.. Problem is, after about 30 clients, it starts to drop clients, and eventually they're all frozen. I just would like to know some theories for creating large scale servers. I'm using TCP, I know it's slow, but it shouldn't cause my server to come to a halt should it? I want to design a game with 300+ clients. If anyone has any knowledge or any tips just let me know. I'd be glad to hear them!
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7170
    It depends a lot on your game, but games that require the client to be kept synchronized with the server almost universally use UDP instead of TCP because it has much less overhead.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2012
    Location
    Little Rock, AR
    Posts
    7
    Rep Power
    0
    UDP is like bulk mail. TCP is like a conference call.

    Try Google this for good explanation. "Comparative analysis - TCP - UDP"

    Joe Patterson
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    0
    Use boost:asio or ProstoServer.com, e.g.

IMN logo majestic logo threadwatch logo seochat tools logo