mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-06 16:25:35 +00:00
Update comment, for sense.
This commit is contained in:
@@ -61,7 +61,7 @@ struct Flywheel {
|
|||||||
@returns The next synchronisation event.
|
@returns The next synchronisation event.
|
||||||
*/
|
*/
|
||||||
inline SyncEvent get_next_event_in_period(bool sync_is_requested, int cycles_to_run_for, int *cycles_advanced) {
|
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(sync_is_requested) {
|
||||||
if(counter_ < sync_error_window_ || counter_ > expected_next_sync_ - sync_error_window_) {
|
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_;
|
const int time_now = (counter_ < sync_error_window_) ? expected_next_sync_ + counter_ : counter_;
|
||||||
|
Reference in New Issue
Block a user