Comment 5 for bug 722473

Revision history for this message
Jari Hautio (jarih) wrote :

Sleep resolution on windows in windows is around 10-50 millisesonds. Sleep function takes integer argument, so using values 0.2 leads to Sleep(0), which just yields rest of the time slice. But thread itself remains active and will be scheduled to run immediately if now other same or higher priority thread is ready to run. This could be used if performance is really required.

There are some other approaches that can be used on windows. I suppose best would be to use same kind of frame limitter that is used when UI is running. SDL_GetTicks and SDL_Delay are used control sleep times and sleep only if there's time for it. I suppose server should be quite fine running with 25 fps.