F3 panel shows the frame rate too high (about 7 % at 30 fps) since #2565 #4540

Open
opened 2026-11-30 22:08:10 +00:00 by github-bot · 1 comment
Owner

@⁠M4gnif1cus on GitHub · 2026-11-30 22:07 UTC · original

What you see

The F3 panel reads a higher frame rate than the engine's own frame-rate line: around 30–32 fps where the log says 30. The error is systematic and comes from Panel::frame in crates/victory-gpu/src/host/panel.rs.

Since #2565 the window starts over whenever it holds no frames:

if self.frames == 0 {
    (self.since, self.last, self.worst, self.before) = (now, now, 0.0, Counters::now());
}
self.frames += 1;

Every report also sets frames = 0, so each new window starts at its first frame and counts it: N frames over N − 1 intervals. The rate is too high by 1 / (N − 1): at 30 fps with a report every 500 ms (N ≈ 16) that is about 7 %. FRAME … MS and the per-frame counters on the panel are divided by the same N, so they read low.

The intent of #2565 (start over after the panel was hidden) is right; it only needs to be told apart from the reset after a report. The F2 panel in the same file already divides by frames - 1.

GPU and driver

RTX 5070 Ti Laptop 12 GB, driver 621.40

CPU, RAM and Windows version

Core Ultra 9 275HX, 96 GB, Windows 11 (build 26300)

VIctory release or commit

e1251c31 (local build)

Settings

Series X, 2560×1440, DLSS Performance, frame generation off, ray tracing off

Logs

The engine's frame-rate line during a run with this panel shown (5 s averages):

2026-11-30T21:29:09.945858Z  INFO victory_gpu::host: 30.3 fps, 33.0 ms/frame
2026-11-30T21:29:14.992252Z  INFO victory_gpu::host: 31.0 fps, 32.3 ms/frame
2026-11-30T21:29:20.078030Z  INFO victory_gpu::host: 29.9 fps, 33.4 ms/frame
2026-11-30T21:29:25.176771Z  INFO victory_gpu::host: 29.8 fps, 33.5 ms/frame

In a slower run the panel showed FPS 25.5 while this line stayed around 23.6 fps.

Are you working on a fix?

There is a possible fix with a test in my fork, if useful: https://github.com/M4gnif1cus/VIctory-NVIDIA/tree/fix-f3-panel-fps

**@⁠M4gnif1cus** on GitHub · 2026-11-30 22:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4539) ### What you see The F3 panel reads a higher frame rate than the engine's own frame-rate line: around 30–32 fps where the log says 30. The error is systematic and comes from `Panel::frame` in `crates/victory-gpu/src/host/panel.rs`. Since #2565 the window starts over whenever it holds no frames: ```rust if self.frames == 0 { (self.since, self.last, self.worst, self.before) = (now, now, 0.0, Counters::now()); } self.frames += 1; ``` Every report also sets `frames = 0`, so each new window starts at its first frame **and counts it**: N frames over N − 1 intervals. The rate is too high by 1 / (N − 1): at 30 fps with a report every 500 ms (N ≈ 16) that is about 7 %. `FRAME … MS` and the per-frame counters on the panel are divided by the same N, so they read low. The intent of #2565 (start over after the panel was hidden) is right; it only needs to be told apart from the reset after a report. The F2 panel in the same file already divides by `frames - 1`. ### GPU and driver RTX 5070 Ti Laptop 12 GB, driver 621.40 ### CPU, RAM and Windows version Core Ultra 9 275HX, 96 GB, Windows 11 (build 26300) ### VIctory release or commit e1251c31 (local build) ### Settings Series X, 2560×1440, DLSS Performance, frame generation off, ray tracing off ### Logs The engine's frame-rate line during a run with this panel shown (5 s averages): ``` 2026-11-30T21:29:09.945858Z INFO victory_gpu::host: 30.3 fps, 33.0 ms/frame 2026-11-30T21:29:14.992252Z INFO victory_gpu::host: 31.0 fps, 32.3 ms/frame 2026-11-30T21:29:20.078030Z INFO victory_gpu::host: 29.9 fps, 33.4 ms/frame 2026-11-30T21:29:25.176771Z INFO victory_gpu::host: 29.8 fps, 33.5 ms/frame ``` In a slower run the panel showed `FPS 25.5` while this line stayed around 23.6 fps. ### Are you working on a fix? There is a possible fix with a test in my fork, if useful: https://github.com/M4gnif1cus/VIctory-NVIDIA/tree/fix-f3-panel-fps
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 22:08:10 +00:00
Author
Owner

@⁠M4gnif1cus on GitHub · 2026-12-01 02:07 UTC · original

A fix is in #4696: the window now starts over only after the panel was hidden, with a test that fails without it. It applies to the slim panel from #4635, which kept the same check.

**@⁠M4gnif1cus** on GitHub · 2026-12-01 02:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4539#issuecomment-7298260294) A fix is in #4696: the window now starts over only after the panel was hidden, with a test that fails without it. It applies to the slim panel from #4635, which kept the same check.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
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
github/trustno1-coder--VIctory-NVIDIA#4540
No description provided.