修改参数
parent
3efe09db22
commit
f9ab39d529
|
@ -123,7 +123,7 @@ public class HandlerLogicThread extends Thread{
|
|||
if(hasAsyncWorker){
|
||||
MongoUtil.getInstence().lastUpdate();
|
||||
}
|
||||
Thread.sleep(5);
|
||||
Thread.sleep(2);
|
||||
return;
|
||||
}
|
||||
int userId = packetNetData.getUserId();
|
||||
|
|
|
@ -39,7 +39,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
private static ProtocolsManager instance = new ProtocolsManager();
|
||||
private Map<Integer, BaseHandler> handlers = new HashMap<>();
|
||||
private static ClassLoader classLoader = GameApplication.class.getClassLoader();
|
||||
public final static int HANDLER_THREAD_NUM = 30;
|
||||
public final static int HANDLER_THREAD_NUM = 8;
|
||||
public static HandlerLogicThread[] handlerThreads = new HandlerLogicThread[HANDLER_THREAD_NUM];
|
||||
|
||||
static {
|
||||
|
|
Loading…
Reference in New Issue