1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Switched to a subtler to out-of-band syncs.

This commit is contained in:
Thomas Harte 2016-02-20 00:16:07 -05:00
parent da361be3ee
commit 68992a62f9

View File

@ -73,11 +73,11 @@ struct Flywheel
if(_counter < _retrace_time + (_expected_next_sync >> 1))
{
_expected_next_sync = (_expected_next_sync + _standard_period + _sync_error_window) >> 1;
_expected_next_sync++;
}
else
{
_expected_next_sync = (_expected_next_sync + _standard_period - _sync_error_window) >> 1;
_expected_next_sync--;
}
}
}