Skip to content

Commit

Permalink
Don't sleep 1 millisecond on *Only Windows*. If we want this we need …
Browse files Browse the repository at this point in the history
…a non-sleep version because sleep is not deterministic.
  • Loading branch information
xwidghet committed Aug 21, 2016
1 parent d51205b commit e490364
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/RageDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,11 +927,6 @@ void RageDisplay::FrameLimitBeforeVsync( int iFPS )
if( !HOOKS->AppHasFocus() )
iDelayMicroseconds = max( iDelayMicroseconds, 10000 ); // give some time to other processes and threads

#if defined(_WINDOWS)
/* In Windows, always explicitly give up a minimum amount of CPU for other threads. */
iDelayMicroseconds = max( iDelayMicroseconds, 1000 );
#endif

if( iDelayMicroseconds > 0 )
usleep( iDelayMicroseconds );
}
Expand Down

0 comments on commit e490364

Please sign in to comment.