1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-17 20:58:07 +02:00

Reduce udp polling time

This commit is contained in:
nordsoft 2023-01-16 20:46:38 +04:00
parent f9050fa5fa
commit 39ad8c7da1
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ void CServerHandler::threadPoll()
ENetEvent event;
while(true)
{
if(enet_host_service(enetClient, &event, 10) > 0)
if(enet_host_service(enetClient, &event, 2) > 0)
{
switch(event.type)
{

View File

@ -321,7 +321,7 @@ void CVCMIServer::startAsyncAccept()
ENetEvent event;
while(state != EServerState::SHUTDOWN)
{
if(enet_host_service(server, &event, 10) > 0)
if(enet_host_service(server, &event, 2) > 0)
{
switch(event.type)
{