Skip to content

Commit

Permalink
Turn off prediction display only when quiescent (fixes #36 github issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Mar 7, 2012
1 parent 5dc208a commit 562ab99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/terminaloverlay.cc
Expand Up @@ -376,7 +376,9 @@ void PredictionEngine::cull( const Framebuffer &fb )
/* control srtt_trigger with hysteresis */
if ( send_interval > SRTT_TRIGGER_HIGH ) {
srtt_trigger = true;
} else if ( send_interval <= SRTT_TRIGGER_LOW ) { /* 20 ms is current minimum value */
} else if ( srtt_trigger &&
(send_interval <= SRTT_TRIGGER_LOW) /* 20 ms is current minimum value */
&& (!active()) ) { /* only turn off when no predictions being shown */
srtt_trigger = false;
}

Expand Down

0 comments on commit 562ab99

Please sign in to comment.