Skip to content

Commit

Permalink
Fix typo in timernu.c, reflow comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Dec 1, 2023
1 parent 66a3998 commit 9ced31b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/timernu.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ static _AL_THREAD * volatile timer_thread = NULL;
static ALLEGRO_COND *timer_cond = NULL;
static bool destroy_thread = false;

// Allegro's al_get_time measures "the time since Allegro started", and so
// does not ignore time spent in a suspended state. Further, some implementations
// Allegro's al_get_time measures "the time since Allegro started", and so does
// not ignore time spent in a suspended state. Further, some implementations
// currently use a calendar clock, which changes based on the system clock.
// However, the timer control thread needs to ignore suspended time, so that it always
// performs the correct number of timer ticks.
// This has only been verified for Allegro, so for now fallback to old
// behavior on other platforms. `_al_timer_thread_handle_tick` will bound
// the interval to a reasonable value to prevent other platforms from behaving
// poorly when the clock changes.
// However, the timer control thread needs to ignore suspended time, so that it
// always performs the correct number of timer ticks.
// This has only been verified for MacOS, so for now fallback to old behavior
// on other platforms. `_al_timer_thread_handle_tick` will bound the interval
// to a reasonable value to prevent other platforms from behaving poorly when
// the clock changes.
// See https://github.com/liballeg/allegro5/issues/1510
// Note: perhaps this could move into a new public API: al_get_uptime

Expand Down

0 comments on commit 9ced31b

Please sign in to comment.