News for hackers. Stuff that matters.
Re:The Story Behind Fenster by immibis on Sunday September 08, 2024 @06:41PM (#41483856)
You might want to use CLOCK_MONOTONIC on POSIX or changing the system time will screw up the refresh rate or freeze the window completely.
Re:The Story Behind Fenster by teo_zero on Monday September 09, 2024 @01:29AM (#41485700)
The application can handle it changing

  if (ms > 0)
    fenster_sleep(ms);
to

  if (ms > 0 && ms <= 1000/60)
    fenster_sleep(ms);
Re:The Story Behind Fenster by immibis on Monday September 09, 2024 @03:00PM (#41492220)
Wouldn't you rather make it correct to begin with, rather than introducing hacks to work around incorrectness?