gpu(frame,fence): honor frame event handle lists and log frame period #518

Open
hingeowl wants to merge 1 commit from hingeowl/Darner:pr/frame-event-handles into Main
Contributor

What it changes

  • The problem on main: frame event handle lists are not honored when scheduling/waiting on frames, and frame period logging is not available.
  • Ported from leonida/mandy (1ab4828ccd, 3df15bf027, 0f95369896, keeping Darner's existing fence::block_until implementation):
    • Adds fence::set_event_handle in crates/darner-gpu/src/fence.rs.
    • Adds frame event handle schedule/wait support and frame period logging in crates/darner-gpu/src/frame.rs behind DARNER_FRAME_HANDLES and DARNER_FRAME_PERIOD_LOG, with unit tests.

How it was tested

  • Tested revision: 0249058 (based on main c8258f9)
  • Commands and results:
    • cargo xtask policy — pass
    • cargo clippy --workspace --all-targets --locked -- -D warnings — pass
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — pass
    • cargo test -p darner-gpu --locked — 1804 passed (1 unrelated flaky watch::tests::streamed_texture_written_through_an_alias_reaches_a_full_queue failed on first run and passed on re-run)
  • Changes a default: yes for DARNER_FRAME_HANDLES (honors title frame event handles); DARNER_FRAME_PERIOD_LOG is diagnostic logging.
  • A/B result: correctness/pacing fix; ran clean in cam-city60 (RTX 4090 + Ryzen 9 7950X3D, Series X, HW RT) as part of our integration branch.
  • Gates run on that revision: cargo xtask policy, both workspace clippy gates, cargo test -p darner-gpu --locked.
  • Hardware dependence: likely general.
  • Coverage gaps: standalone A/B frame-pacing comparison not yet recorded.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found
  • Replaces or overlaps: none found
## What it changes - The problem on main: frame event handle lists are not honored when scheduling/waiting on frames, and frame period logging is not available. - Ported from `leonida/mandy` (`1ab4828ccd`, `3df15bf027`, `0f95369896`, keeping Darner's existing `fence::block_until` implementation): - Adds `fence::set_event_handle` in `crates/darner-gpu/src/fence.rs`. - Adds frame event handle schedule/wait support and frame period logging in `crates/darner-gpu/src/frame.rs` behind `DARNER_FRAME_HANDLES` and `DARNER_FRAME_PERIOD_LOG`, with unit tests. ## How it was tested - Tested revision: `0249058` (based on `main` `c8258f9`) - Commands and results: - `cargo xtask policy` — pass - `cargo clippy --workspace --all-targets --locked -- -D warnings` — pass - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` — pass - `cargo test -p darner-gpu --locked` — 1804 passed (1 unrelated flaky `watch::tests::streamed_texture_written_through_an_alias_reaches_a_full_queue` failed on first run and passed on re-run) - Changes a default: yes for `DARNER_FRAME_HANDLES` (honors title frame event handles); `DARNER_FRAME_PERIOD_LOG` is diagnostic logging. - A/B result: correctness/pacing fix; ran clean in `cam-city60` (RTX 4090 + Ryzen 9 7950X3D, Series X, HW RT) as part of our integration branch. - Gates run on that revision: `cargo xtask policy`, both workspace `clippy` gates, `cargo test -p darner-gpu --locked`. - Hardware dependence: likely general. - Coverage gaps: standalone A/B frame-pacing comparison not yet recorded. ## Checklist - [x] I ran this change in the game. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found - Replaces or overlaps: none found
Ported from Mandy (kept Darner's existing fence::block_until implementation;
added fence::set_event_handle and frame event handle schedule/wait support
behind DARNER_FRAME_HANDLES and DARNER_FRAME_PERIOD_LOG).

Upstream-Repository: https://git.leonida.now/leonida/mandy
Upstream-Commit: 1ab4828ccd, 3df15bf027, 0f95369896
Integration-Base: 6134402
Validation: cargo test --locked -p darner-gpu --lib frame:: (passed)
TrustNo1 changed title from [pr-fix][rendering] gpu(frame,fence): honor frame event handle lists and log frame period to gpu(frame,fence): honor frame event handle lists and log frame period 2026-12-06 03:27:45 +00:00
Owner

Test needed — commit 0249058c; what to check:

  • The problem on main: frame event handle lists are not honored when scheduling/waiting on frames, and frame period logging is not available.
  • Ported from leonida/mandy (1ab4828ccd, 3df15bf027, 0f95369896, keeping Darner's existing fence::block_until implementation):
    • Adds fence::set_event_handle in crates/darner-gpu/src/fence.rs.
    • Adds frame event handle schedule/wait support and frame period logging in crates/darner-gpu/src/frame.rs behind DARNER_FRAME_HANDLES and DARNER_FRAME_PERIOD_LOG, with unit tests.

Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.

Reply testing to take this run; it's free again after 24 h with no results.

**Test needed** — commit `0249058c`; what to check: - The problem on main: frame event handle lists are not honored when scheduling/waiting on frames, and frame period logging is not available. - Ported from `leonida/mandy` (`1ab4828ccd`, `3df15bf027`, `0f95369896`, keeping Darner's existing `fence::block_until` implementation): - Adds `fence::set_event_handle` in `crates/darner-gpu/src/fence.rs`. - Adds frame event handle schedule/wait support and frame period logging in `crates/darner-gpu/src/frame.rs` behind `DARNER_FRAME_HANDLES` and `DARNER_FRAME_PERIOD_LOG`, with unit tests. Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture. Reply `testing` to take this run; it's free again after 24 h with no results.
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 'pr/frame-event-handles:hingeowl-pr/frame-event-handles'
git switch 'hingeowl-pr/frame-event-handles'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'hingeowl-pr/frame-event-handles'
git switch 'hingeowl-pr/frame-event-handles'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'hingeowl-pr/frame-event-handles'
git switch 'hingeowl-pr/frame-event-handles'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'hingeowl-pr/frame-event-handles'
git switch 'Main'
git merge --squash 'hingeowl-pr/frame-event-handles'
git switch 'Main'
git merge --ff-only 'hingeowl-pr/frame-event-handles'
git switch 'Main'
git merge 'hingeowl-pr/frame-event-handles'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!518
No description provided.