Back off overlay frame rate when all timing tests have fired (saves CPU)

Closes #225 github issue (Jay Freeman).
This commit is contained in:
Keith Winstein
2012-04-19 00:05:15 -04:00
parent 9cf87d224e
commit b127a92617
2 changed files with 9 additions and 2 deletions
+4 -2
View File
@@ -285,8 +285,10 @@ int OverlayManager::wait_time( void )
next_expiry = 1000;
}
if ( predictions.active() && ( next_expiry > 20 ) ) {
next_expiry = 20;
if ( predictions.timing_tests_necessary()
&& predictions.active()
&& ( next_expiry > 50 ) ) {
next_expiry = 50;
}
return next_expiry;