Skip to content

Fix: First startup frame latency & Frame Timing#105

Merged
meszmate merged 3 commits into
meszmate:mainfrom
IridescentRose:fix/startup_latency
May 10, 2026
Merged

Fix: First startup frame latency & Frame Timing#105
meszmate merged 3 commits into
meszmate:mainfrom
IridescentRose:fix/startup_latency

Conversation

@IridescentRose
Copy link
Copy Markdown
Contributor

@IridescentRose IridescentRose commented May 8, 2026

Latency goes from ~37.9 milliseconds on my M4 Air to ~210 microseconds, which is noticeably snappy. I also suspect a bug in some of the frame / input timing code but will make a separate PR after investigating.

EDIT: Since it mostly interferes with the code I just wrote, it's better to probably put it in this PR. The issue is that frame drift can occur and the timing is imprecise. We did lose one behavior which is immediate repaint on character keystroke; this means maximally a 16ms input lag, which should be acceptable.

EDIT 3: Deleted an incorrect comment -- Linux startup was also impacted by this issue but my local cached version was broken.

@IridescentRose IridescentRose marked this pull request as ready for review May 8, 2026 07:23
@IridescentRose IridescentRose force-pushed the fix/startup_latency branch from a172189 to c6409eb Compare May 8, 2026 07:26
@IridescentRose IridescentRose changed the title Fix: First startup frame latency Fix: First startup frame latency & Frame Timing May 8, 2026
@meszmate meszmate merged commit 7b3bd53 into meszmate:main May 10, 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.

2 participants