If i use the gnu top command while the dedicated server is running it reports 100% cpu usage for it. Even if no player is connected to the server. I can workaround it by adding
usleep(50000);
to the main loop of server.cpp.
I think the launcher should look if the call to processCoroutines took less then 50 milliseconds and then sleep the remaining time.
If i use the gnu top command while the dedicated server is running it reports 100% cpu usage for it. Even if no player is connected to the server. I can workaround it by adding
to the main loop of server.cpp. I think the launcher should look if the call to
processCoroutines
took less then 50 milliseconds and then sleep the remaining time.