diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 308a776..f91e5c3 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -379093,12 +379093,7 @@ int fps__timing_thread(void *arg) { timer_counter++; int64_t tt = (int64_t)(1e9/(float)framerate) - ns_excess; uint64_t took = -time_ns(); - #if is(win32) - do_once timeBeginPeriod(1); sleep_ns( (float)tt ); - #else - sleep_ns( (float)tt ); - #endif took += time_ns(); ns_excess = took - tt; if( ns_excess < 0 ) ns_excess = 0; diff --git a/engine/split/v4k_window.c b/engine/split/v4k_window.c index b8a44dd..6251731 100644 --- a/engine/split/v4k_window.c +++ b/engine/split/v4k_window.c @@ -14,12 +14,7 @@ int fps__timing_thread(void *arg) { timer_counter++; int64_t tt = (int64_t)(1e9/(float)framerate) - ns_excess; uint64_t took = -time_ns(); - #if is(win32) - do_once timeBeginPeriod(1); sleep_ns( (float)tt ); - #else - sleep_ns( (float)tt ); - #endif took += time_ns(); ns_excess = took - tt; if( ns_excess < 0 ) ns_excess = 0; diff --git a/engine/v4k.c b/engine/v4k.c index 7e87a4a..0f51a96 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -26237,12 +26237,7 @@ int fps__timing_thread(void *arg) { timer_counter++; int64_t tt = (int64_t)(1e9/(float)framerate) - ns_excess; uint64_t took = -time_ns(); - #if is(win32) - do_once timeBeginPeriod(1); sleep_ns( (float)tt ); - #else - sleep_ns( (float)tt ); - #endif took += time_ns(); ns_excess = took - tt; if( ns_excess < 0 ) ns_excess = 0;