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:
parent
da361be3ee
commit
68992a62f9
@ -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--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user