diff --git a/rehlds/dedicated/src/sys_window.cpp b/rehlds/dedicated/src/sys_window.cpp index aa09d5f..f8e614d 100644 --- a/rehlds/dedicated/src/sys_window.cpp +++ b/rehlds/dedicated/src/sys_window.cpp @@ -60,10 +60,16 @@ CSys::CSys() WORD version = MAKEWORD(2, 0); WSADATA wsaData; WSAStartup(version, &wsaData); + + // Request 1ms resolution for windows timer + timeBeginPeriod(1); } CSys::~CSys() { + // Clear previously set timer resolution + timeEndPeriod(1); + WSACleanup(); sys = nullptr; }