diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index 607913c92a..3b54d81a4e 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -19,6 +19,13 @@ int main(int argc, char** argv) SetProcessDPIAware(); WSADATA wsa_data; WSAStartup(MAKEWORD(2, 2), &wsa_data); + timeBeginPeriod(1); + + atexit([] + { + timeEndPeriod(1); + WSACleanup(); + }); #else qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #endif