mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #2087] Keep current frame-token statistics at or before the poll (FRAME-PACER-EARLY-ORIGIN) #2091
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2091
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2087
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/frame-pacer-early-origin📝 Commits (1)
6921a27Keep current frame token statistics at or before the poll📊 Changes
2 files changed (+24 additions, -1 deletions)
View changed files
📝
runtime/src/frame_pacer.h(+2 -1)📝
runtime/test/frame_pacer_test.cpp(+22 -0)📄 Description
Claimed in the coordination issue as: FRAME-PACER-EARLY-ORIGIN
What and why
A current-token poll can return immediately before the configured origin offset. Its frame-event statistic then points into the future, even after the token has been presented. Record the poll timestamp when the scheduled origin is still ahead. Use the original grid to compute the token's due time.
Tested
db1a22d. It passed throughframe_pacerCTest with the fix, including the first display on the configured vblank.git diff --checkand the source-only check.GPUs tested: n/a.
AI-assisted: yes.
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.