Skip to content

Fix frame timings and non-monotonic clock issues#34

Merged
meszmate merged 2 commits intomainfrom
fix/33-frame-timings-and-non-monotonic-clocks
Feb 24, 2026
Merged

Fix frame timings and non-monotonic clock issues#34
meszmate merged 2 commits intomainfrom
fix/33-frame-timings-and-non-monotonic-clocks

Conversation

@meszmate
Copy link
Owner

Closes #33

  • Use std.time.Timer (monotonic) instead of nanoTimestamp() (wall clock) for frame timing
  • Add cross-version sleepNs helper with fallbacks for Zig 0.15 and 0.16+
  • Reset timing state on program start to avoid stale deltas
  • Fix post-resume frame delta spike

@meszmate meszmate linked an issue Feb 24, 2026 that may be closed by this pull request
@meszmate meszmate merged commit adff3f0 into main Feb 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frame timings and non-monotonic clocks

1 participant