Add Smooth Mode to reduce stutter by capping base FPS #557

Open
GraVI wants to merge 1 commit from GraVI/Darner:feature/smooth-mode into Main
First-time contributor

What it changes

Smooth Mode caps base FPS while frame generation is active to help smooth out small frame-time spikes. For example, if city driving averages 20 base FPS, the 16.7 FPS setting gives each frame 60 ms instead of 50 ms. The game keeps its existing simulation timing logic.

In F1 → Frame Generation, choose Off (default), 16.7, 20, or 25 FPS. F1 applies the change immediately and saves DARNER_GAME_INTERVAL_MS in darner-settings.txt: 0 for Off, 60 for 16.7 FPS, 50 for 20 FPS, or 40 for 25 FPS. When FG stops, the normal frame clock takes over.

How it was tested

  • Built and played f6c94c4 on an RTX 5070 Ti: Series S profile, DLSS Quality (1280×720 → 1920×1080), 2× DLSS FG, ray tracing off. Switched settings during play.
  • Five focused tests passed on fe58d1e with identical source in the five changed files. The full workspace gates, FSR FG, and a controlled same-route A/B were not run on the final commit.

Checklist

  • Tested in game.
  • One change based on upstream main.
  • Follows the asset policy.
  • Dependencies: none.

Checked for overlap

  • Searched open PRs for the feature and affected files.
  • Related: #154 adds a general live FPS cap. Smooth Mode adds lower targets specifically for FG. No duplicate found.
## What it changes Smooth Mode caps base FPS while frame generation is active to help smooth out small frame-time spikes. For example, if city driving averages 20 base FPS, the 16.7 FPS setting gives each frame 60 ms instead of 50 ms. The game keeps its existing simulation timing logic. In **F1 → Frame Generation**, choose **Off** (default), **16.7**, **20**, or **25 FPS**. F1 applies the change immediately and saves `DARNER_GAME_INTERVAL_MS` in `darner-settings.txt`: `0` for Off, `60` for 16.7 FPS, `50` for 20 FPS, or `40` for 25 FPS. When FG stops, the normal frame clock takes over. ## How it was tested - Built and played `f6c94c4` on an RTX 5070 Ti: Series S profile, DLSS Quality (1280×720 → 1920×1080), 2× DLSS FG, ray tracing off. Switched settings during play. - Five focused tests passed on `fe58d1e` with identical source in the five changed files. The full workspace gates, FSR FG, and a controlled same-route A/B were not run on the final commit. ## Checklist - [x] Tested in game. - [x] One change based on upstream `main`. - [x] Follows the asset policy. - [x] Dependencies: none. ## Checked for overlap - [x] Searched open PRs for the feature and affected files. - Related: #154 adds a general live FPS cap. Smooth Mode adds lower targets specifically for FG. No duplicate found.
Default to Off and offer 16.7, 20 and 25 FPS in order. Apply the cap while frame generation is adding frames, and use runtime FG state on direct launches.
TrustNo1 changed title from [pr-feature][rendering][frame-generation] Add Smooth Mode to reduce stutter by capping base FPS to Add Smooth Mode to reduce stutter by capping base FPS 2026-12-06 03:27:09 +00:00
Owner

Test needed — commit f6c94c42; what to check:

Smooth Mode caps base FPS while frame generation is active to help smooth out small frame-time spikes. For example, if city driving averages 20 base FPS, the 16.7 FPS setting gives each frame 60 ms instead of 50 ms. The game keeps its existing simulation timing logic.

In F1 → Frame Generation, choose Off (default), 16.7, 20, or 25 FPS. F1 applies the change immediately and saves DARNER_GAME_INTERVAL_MS in darner-settings.txt: 0 for Off, 60 for 16.7 FPS, 50 for 20 FPS, or 40 for 25 FPS. When FG stops, the normal frame clock takes over.

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 `f6c94c42`; what to check: Smooth Mode caps base FPS while frame generation is active to help smooth out small frame-time spikes. For example, if city driving averages 20 base FPS, the 16.7 FPS setting gives each frame 60 ms instead of 50 ms. The game keeps its existing simulation timing logic. In **F1 → Frame Generation**, choose **Off** (default), **16.7**, **20**, or **25 FPS**. F1 applies the change immediately and saves `DARNER_GAME_INTERVAL_MS` in `darner-settings.txt`: `0` for Off, `60` for 16.7 FPS, `50` for 20 FPS, or `40` for 25 FPS. When FG stops, the normal frame clock takes over. 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 'feature/smooth-mode:GraVI-feature/smooth-mode'
git switch 'GraVI-feature/smooth-mode'

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 'GraVI-feature/smooth-mode'
git switch 'GraVI-feature/smooth-mode'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'GraVI-feature/smooth-mode'
git switch 'GraVI-feature/smooth-mode'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'GraVI-feature/smooth-mode'
git switch 'Main'
git merge --squash 'GraVI-feature/smooth-mode'
git switch 'Main'
git merge --ff-only 'GraVI-feature/smooth-mode'
git switch 'Main'
git merge 'GraVI-feature/smooth-mode'
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!557
No description provided.