mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 08:26:28 +00:00
Switched to a subtler to out-of-band syncs.
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user