Add finer frame-rate caps to the F1 picture menu #532

Open
holoslicer wants to merge 1 commit from holoslicer/Darner:feat/granular-frame-caps into Main
Contributor

Contributor role (optional)

Already requested in #529.

What it changes

The F1 Picture menu offers frame caps in 5 FPS steps from 15 through 60, plus 24 FPS. It keeps the 120 FPS and uncapped choices and the console label at 30. The existing frame clock and launcher already accept these values.

How it was tested

  • Tested f1934a5 on c8258f9, Windows x64, i7-12700K, RTX 3090.
  • To reproduce the UI change, open F1 → Picture → Frame Rate Cap. On the base revision the row cycles through uncapped, 120, 60 and 30. On this branch step down from 30 through 25, 24, 20 and 15. Save and restart. The cap uses the existing next-start behavior.
  • cargo test --locked -p darner-gpu --lib a_change_is_saved_at_once_however_the_game_was_started -- --test-threads=1 passed. It exercises the real menu selection and reads back the saved settings file after each low cap.
  • An offline device test created the public emulated device and issued 61 blocking flip waits per numeric cap. With the saved rate's microsecond interval overriding a 33,333 µs device request, these were the mean intervals over the 60 deltas.
F1 selection Base menu Requested interval Observed mean
15 FPS unavailable 66,667 µs 66.658 ms
20 FPS unavailable 50,000 µs 50.005 ms
24 FPS unavailable 41,667 µs 41.661 ms
25 FPS unavailable 40,000 µs 40.004 ms
30 FPS available 33,333 µs 33.332 ms
  • The clock test covered all 12 numeric choices through 120 FPS. This changes no default and makes no performance claim. Frame delivery under load and simulation speed in gameplay were not tested.
  • Hardware dependence is limited to timer precision for these observations. The settings are independent of GPU vendor, console profile, wave size, DLSS, frame generation and ray tracing.
  • The full F1 menu unit-test group passed (56 passed, two ignored). The launcher settings precedence test what_the_menu_saved_goes_over_the_options passed.
  • Both workspace Clippy gates passed on f1934a5, with --workspace --all-targets --locked -- -D warnings and the separate --all-features run. cargo xtask policy passed. The full workspace test gate was not run on this branch.

Checklist

  • Offline menu, settings and clock tests ran with the title closed.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • This patch has no prerequisites.

Checked for overlap

  • Searched open and closed issues and PRs for FPS caps, frame locking, frame pacing and DARNER_MENU_FPS; also checked open PRs changing host/menu.rs.
  • #302 also consumes the settings catalog. #296 concerns the title's simulation below 15 FPS. Neither changes this cap list.
## Contributor role (optional) Already requested in #529. ## What it changes The F1 Picture menu offers frame caps in 5 FPS steps from 15 through 60, plus 24 FPS. It keeps the 120 FPS and uncapped choices and the console label at 30. The existing frame clock and launcher already accept these values. ## How it was tested - Tested `f1934a5` on `c8258f9`, Windows x64, i7-12700K, RTX 3090. - To reproduce the UI change, open F1 → Picture → Frame Rate Cap. On the base revision the row cycles through uncapped, 120, 60 and 30. On this branch step down from 30 through 25, 24, 20 and 15. Save and restart. The cap uses the existing next-start behavior. - `cargo test --locked -p darner-gpu --lib a_change_is_saved_at_once_however_the_game_was_started -- --test-threads=1` passed. It exercises the real menu selection and reads back the saved settings file after each low cap. - An offline device test created the public emulated device and issued 61 blocking flip waits per numeric cap. With the saved rate's microsecond interval overriding a 33,333 µs device request, these were the mean intervals over the 60 deltas. | F1 selection | Base menu | Requested interval | Observed mean | |---|---|---:|---:| | 15 FPS | unavailable | 66,667 µs | 66.658 ms | | 20 FPS | unavailable | 50,000 µs | 50.005 ms | | 24 FPS | unavailable | 41,667 µs | 41.661 ms | | 25 FPS | unavailable | 40,000 µs | 40.004 ms | | 30 FPS | available | 33,333 µs | 33.332 ms | - The clock test covered all 12 numeric choices through 120 FPS. This changes no default and makes no performance claim. Frame delivery under load and simulation speed in gameplay were not tested. - Hardware dependence is limited to timer precision for these observations. The settings are independent of GPU vendor, console profile, wave size, DLSS, frame generation and ray tracing. - The full F1 menu unit-test group passed (56 passed, two ignored). The launcher settings precedence test `what_the_menu_saved_goes_over_the_options` passed. - Both workspace Clippy gates passed on `f1934a5`, with `--workspace --all-targets --locked -- -D warnings` and the separate `--all-features` run. `cargo xtask policy` passed. The full workspace test gate was not run on this branch. ## Checklist - [x] Offline menu, settings and clock tests ran with the title closed. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] This patch has no prerequisites. ## Checked for overlap - [x] Searched open and closed issues and PRs for FPS caps, frame locking, frame pacing and `DARNER_MENU_FPS`; also checked open PRs changing `host/menu.rs`. - #302 also consumes the settings catalog. #296 concerns the title's simulation below 15 FPS. Neither changes this cap list.
TrustNo1 changed title from [pr-feature][rendering] Add finer frame-rate caps to the F1 picture menu to Add finer frame-rate caps to the F1 picture menu 2026-12-06 03:27:37 +00:00
Owner

Test needed — commit f1934a54; what to check: The F1 Picture menu offers frame caps in 5 FPS steps from 15 through 60, plus 24 FPS. It keeps the 120 FPS and uncapped choices and the console label at 30. The existing frame clock and launcher already accept these values.

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 `f1934a54`; what to check: The F1 Picture menu offers frame caps in 5 FPS steps from 15 through 60, plus 24 FPS. It keeps the 120 FPS and uncapped choices and the console label at 30. The existing frame clock and launcher already accept these values. 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 'feat/granular-frame-caps:holoslicer-feat/granular-frame-caps'
git switch 'holoslicer-feat/granular-frame-caps'

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 'holoslicer-feat/granular-frame-caps'
git switch 'holoslicer-feat/granular-frame-caps'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'holoslicer-feat/granular-frame-caps'
git switch 'holoslicer-feat/granular-frame-caps'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'holoslicer-feat/granular-frame-caps'
git switch 'Main'
git merge --squash 'holoslicer-feat/granular-frame-caps'
git switch 'Main'
git merge --ff-only 'holoslicer-feat/granular-frame-caps'
git switch 'Main'
git merge 'holoslicer-feat/granular-frame-caps'
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!532
No description provided.