Keep current frame-token statistics at or before the poll (FRAME-PACER-EARLY-ORIGIN) #2087

Open
github-bot wants to merge 1 commit from github-bot/gh-2087 into main AGit
Owner

@⁠alexandersato0830 on GitHub · 2026-11-25 19:55 UTC · original
alexandersato0830:codex/frame-pacer-early-origin → main · +24 −1 · 2 files · 1 commits · open

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

  • Windows 11, MSVC 19.51. The new fake-clock regression failed on main db1a22d. It passed through frame_pacer CTest with the fix, including the first display on the configured vblank.
  • Verified git diff --check and the source-only check.

GPUs tested: n/a.

AI-assisted: yes.

  • Based on current main.
  • One topic.
  • Uses source and a synthetic clock.
**@⁠alexandersato0830** on GitHub · 2026-11-25 19:55 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2087) `alexandersato0830:codex/frame-pacer-early-origin` → `main` · +24 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [FRAME-PACER-EARLY-ORIGIN](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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 - Windows 11, MSVC 19.51. The new fake-clock regression failed on main `db1a22d`. It passed through `frame_pacer` CTest with the fix, including the first display on the configured vblank. - Verified `git diff --check` and the source-only check. GPUs tested: n/a. AI-assisted: yes. - [x] Based on current `main`. - [x] One topic. - [x] Uses source and a synthetic clock.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:17:20 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2087/head:github-bot/gh-2087'
git switch 'github-bot/gh-2087'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2087'
git switch 'github-bot/gh-2087'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2087'
git switch 'github-bot/gh-2087'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2087'
git switch 'main'
git merge --squash 'github-bot/gh-2087'
git switch 'main'
git merge --ff-only 'github-bot/gh-2087'
git switch 'main'
git merge 'github-bot/gh-2087'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.