Search Unity

Increase work threads

Discussion in 'Multiplayer' started by MrSaoish, May 16, 2017.

  1. MrSaoish

    MrSaoish

    Joined:
    Oct 1, 2016
    Posts:
    22
    Hi everyone, I am building a dedicated server with Unet LLAPI, and with the recent update of Unet, now we can increase the thread pool size to allow I/O been processed faster and support more connections. But is this the correct way of using it?
    Code (CSharp):
    1.         GlobalConfig GC = new GlobalConfig();      
    2.         GC.ThreadPoolSize = 99;
    3.         NetworkTransport.Init(GC);
    I think the pool size is be based on system spec? Does anyone know how to measure the pool size based on system spec? Also, I have a dumb question: with this feature, is it practical to build a dedicated server could handle more than 50k connections?