Skip to content

Commit e490364

Browse files
committed
Don't sleep 1 millisecond on *Only Windows*. If we want this we need a non-sleep version because sleep is not deterministic.
1 parent d51205b commit e490364

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/RageDisplay.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -927,11 +927,6 @@ void RageDisplay::FrameLimitBeforeVsync( int iFPS )
927927
if( !HOOKS->AppHasFocus() )
928928
iDelayMicroseconds = max( iDelayMicroseconds, 10000 ); // give some time to other processes and threads
929929

930-
#if defined(_WINDOWS)
931-
/* In Windows, always explicitly give up a minimum amount of CPU for other threads. */
932-
iDelayMicroseconds = max( iDelayMicroseconds, 1000 );
933-
#endif
934-
935930
if( iDelayMicroseconds > 0 )
936931
usleep( iDelayMicroseconds );
937932
}

0 commit comments

Comments
 (0)