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

Open
opened 2026-11-30 22:07:16 +00:00 by M4gnif1cus · 1 comment
M4gnif1cus commented 2026-11-30 22:07:16 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by M4gnif1cus on 2026-11-30T22:07:16Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6707278486 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4539). Originally posted by [M4gnif1cus](https://github.com/M4gnif1cus) on 2026-11-30T22:07:16Z. --- ### 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
M4gnif1cus commented 2026-12-01 02:07:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by M4gnif1cus on 2026-12-01T02:07:20Z.


A fix is in #4695: 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 #4634, which kept the same check.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7298260294 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4539#issuecomment-7298260294). Originally posted by [M4gnif1cus](https://github.com/M4gnif1cus) on 2026-12-01T02:07:20Z. --- A fix is in #4695: 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 #4634, which kept the same check.
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#4539
No description provided.