1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 18:55:48 +00:00

Update comment, for sense.

This commit is contained in:
Thomas Harte 2020-01-02 23:13:12 -05:00
parent 42ccf48966
commit 7dea99b1cc

View File

@ -61,7 +61,7 @@ struct Flywheel {
@returns The next synchronisation event.
*/
inline SyncEvent get_next_event_in_period(bool sync_is_requested, int cycles_to_run_for, int *cycles_advanced) {
// do we recognise this hsync, thereby adjusting future time expectations?
// If sync is signalled _now_, consider adjusting expected_next_sync_.
if(sync_is_requested) {
if(counter_ < sync_error_window_ || counter_ > expected_next_sync_ - sync_error_window_) {
const int time_now = (counter_ < sync_error_window_) ? expected_next_sync_ + counter_ : counter_;