Two wave-wide compute programs take ~35 ms and ~7.5 ms per frame on RTX 4080 (night scenes drop to 6–10 fps) #2348
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#2348
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CubanLegend on GitHub · 2026-11-29 12:17 UTC · original
Build: v2026.11.29.01 (
829188e9) plus PRs #2116, #2134, #2072, #2049, #2165, #2092 merged locally (none of them touch the shader forms involved here)PC: RTX 4080 16 GB, Ryzen 7 9800X3D, Windows 11 (26200), NVIDIA driver: 621.01
Profile: Series X, 4K output, DLSS Performance (preset K), frame generation off, ray tracing off
Settings beyond defaults:
VICTORY_LEAVE_OUTwith the 13 reflection programs ofWIDE_SKIP_DEFAULTadded (workaround for the green/red reflections from render-target aliasing, #2042),VICTORY_WATER_LIGHT=0What happens
At night in front of the Ammu-Nation in Key Lento, and at the docks with boats in front of Kenton's shop, frame rate drops from ~30 fps to 6–10 fps and the advisor reports the GPU fully busy (129 of 129 ms). Moving the camera makes it worse; standing still it sometimes recovers.
Card time by pipeline (
VICTORY_CARD_METER_PIPELINES=1)Two compute programs take most of the frame, each in a single dispatch:
compute 2561af9577c47289compute cabb87599722e59avertex e732a8b4bea4c0dd, pixel 456f02b52910aabc)Totals on those frames: 67–72 ms of card time in the title's lists; the layer's own lists ~2–4 ms.
Tests
VICTORY_LEAVE_OUTwith both hashes added: the frame rate recovers at the same spot, but lighting shows many glitches. So they matter, and their siblings presumably read their output.9bba2a20moved to the wave-wide form (screen probes / gather, shadow and decal classification, resolves), but the log doesn't name them.Questions
2561af9577c47289andcabb87599722e59a?Log of the timing run attached:
victory-nvidia-20261129-064230.log.victory-nvidia-20261129-064230.log
@tupacfan04 on GitHub · 2026-11-29 12:50 UTC · original
A data point from a second NVIDIA card, RTX 5070 12 GB (32-lane waves, driver 621.40), i9-14900F, Windows 11.
Build: main
e1f2eb6plus #1939 and local logging;9bba2a20is included. Series X, 1440p, DLSS Quality, no frame generation, ray tracing on (VICTORY_BVH_BUILDER=1 VICTORY_LDS_LAST_RESORT=1). I timed every compute dispatch with D3D12 timestamps.2561af9577c47289(24,664 bytes) andcabb87599722e59a(16,336 bytes) are both translated and bound in the run, but neither is among the ten longest compute pipelines in any of 80 samples, where the tenth longest is at most 0.46 ms. So at the places our scripted route visits they do not cost anything like 35 ms. That is not your night scene, so it does not show they are cheap there; it does suggest the cost depends on the scene and is not a fixed cost of their translated form.f22a76fcb967ee5936.6,b58eb3ca6ee4642712.0,6d7fe7745ab9c6d810.6 (3 dispatches),3592426e3e9142d88.7,36f04a4ed0ad1d9b4.1. Timings of back-to-back dispatches overlap on the card, so per-program figures are approximate. The structure builder's ~200 dispatches cost about 1 ms.If it helps,
VICTORY_CARD_METER_PIPELINES=1on main now gives the per-program view without a local patch.🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-11-29 16:02 UTC · original
Update: most of the fps drop in v2026.11.29.01 comes from wave64 folding, which that release turned on by default. Until the next build (which turns it off), launch with
--set VICTORY_WAVE_FOLDED=0. The first run after that rebuilds shaders, so judge the second run. If you need it playable right now, v2026.11.28.03 is the last build without these regressions.@botto854 on GitHub · 2026-11-29 16:11 UTC · original
Another data point for
VICTORY_WAVE_FOLDED=0, from an RTX 4090 24 GB (driver 617.14), i9-14900K, 32 GB RAM, Windows 11 (26300). Build:829188e9plus #2263 and #2305 (neither touches shaders), Series X, 1440p, DLAA, DLSS frame generation 2x.Inside a minimart in free roam, the frame rate dropped to 4-6 fps. The card meter showed 130-250 ms of card time per frame in the title's lists, and one list alone took 102 ms per frame:
[compute 2561af9577c47289] / [compute c06aa62112ffba4c].With
VICTORY_WAVE_FOLDED=0(the first run after switching it), same minimart:VICTORY_WAVE_FOLDED=02561af9577c47289listA few short drops remain, which fits first-use pipeline builds after the switch.
@rlenci99 on GitHub · 2026-11-30 04:37 UTC · original
Still there on the release exes v2026.11.29.04 and .05 (no
VICTORY_WAVE_*orVICTORY_STRICT_JOINSset): on an RTX 5090 the list[compute 2561af9577c47289] / [compute cabb87599722e59a]took 23 to 67 ms of card time a frame in heavy views, and those views ran at 10 to 19 fps. It comes and goes: in other default runs, views with as many draws ran at 22 to 25 fps with the list at about 2 ms or less.Setup: RTX 5090 (621.14), Ryzen 9 9950X3D2, 47 GB RAM, Windows 11 26200; Series X, 4K, DLSS quality, frame generation 2X, ray tracing off; launcher defaults plus my saved F1 settings (line 1 of the play logs). Starts of 150 to 300 s in the world, nearly all unattended, the character idle where the save loaded; the title autosaves, and I did not restore the save between runs.
Largest card-meter report of the list (256 frames each) from 30 s after the world appears; heavy views are 5-second samples with 9,000 draws a frame or more:
VICTORY_TITLE_SPARE_MB=24576)VICTORY_WAVE_FOLDED=0)VICTORY_WAVE_FOLDED=0: my A/B (default, =0, =0, default, 03:29 to 03:46) came when the list was cheap in both default runs too, so it says nothing about the switch. One of the two =0 runs ended 2 min into the world with the device removed (crashes.log:host GPU failure: relay: the device was lost before fence value 90971 was reached ... device removed); the other ran clean. Seen once.Read from the .05 source: #2853's change is not in the tag;
fill_phisstill marks those joins only withVICTORY_STRICT_JOINS(emit/lower.rs:13937-13943). #2853 measured this program at 45 to 68 ms on an RTX 5090 at night, and 0.1 to 0.3 ms with its change.Not checked: the in-game time of day. This issue's title and #2853's test are night scenes, which would fit the cost coming and going.
AI-assisted (Claude Code); logs on request.
@Ramsody on GitHub · 2026-11-30 12:06 UTC · original
I saw the same pair of shaders at night on an RTX 5090 with v2026.11.29.05. In my two runs with the open PR #2853, this problem did not come back. My full report, with three before/after logs, is in #3933.
Symptoms: 3-8 fps at night near a petrol station. The GPU was at 100% load but only about 95 W. CPU preparation was about 30-50 ms, but the wait for the GPU was often 100-285 ms. There was plenty of free RAM, and in the slow log lines I checked, no pipelines were being made.
Before (v2026.11.29.05):
compute 2561af9577c47289is named in 38 card meter rows, up to 164.6 ms per frame.compute cabb87599722e59ais named in 26 rows, up to 113.5 ms. One row can name several programs, so these numbers must not be added together.After (v2026.11.29.05 + #2853): neither program appears in the card meter rows of either run.
Which programs these are: #2853 identifies
2561af9577c47289asptfx_CS_lightAtlas_Sprite. It explains that a lane mask is lost when the loop repeats, so the loop can run up to its 4,096-iteration limit. According to #3896,ptfx_CS_lightAtlas_Trailisc06aa62112ffba4c, socabb87599722e59ais a different program. I do not know its name.Limits: the routes were different, and I have not confirmed that the "after" runs include the same spot at night. An earlier comment here says that this cost comes and goes on another RTX 5090. Two good runs therefore do not prove that the problem is gone everywhere. I only tested #2853. #3871 says it carries the same fix, and #3896 takes a different approach.
To test it: merge #2853 into v2026.11.29.05 and build with
cargo build --release --locked -p victory. Use a separate cache, run a full preload, then go back to the same spot at night. v2026.11.29.05 itself does not include this change.It would help if others who see this could test the same spot with and without #2853 and share the card meter rows for
2561af9577c47289.@Trillazill on GitHub · 2026-12-01 06:22 UTC · original
On
41adb551,2561af9577c47289/c06aa62112ffba4creached 50.7–72.8 ms a frame in the card meter in the prison cell on an RTX 4080 (5–8 fps, every other list 1–2.6 ms). On main5fabb46e(with #3871) it did not show up in the card meter at all over a 6-minute run on the same route. That isn't the night scene in this report, so it's a data point, not a confirmation.@Lancito01 on GitHub · 2026-12-01 15:37 UTC · original
Same result on Ampere: RTX 3080 10 GB, driver 621.14, Windows 11, Series S profile, DLSS Quality + FSR 3 frame generation, same save and same route (prison cell, then walk into the dorm), full
preload --allbefore each run.2561af9577c47289/c06aa62112ffba4c41adb551(+#3848)5fabb46e(+#3848 v2)In the cell (fewer draws) both builds were about the same: card ~36-37 ms, frame ~60-68 ms. The picture in the dorm looked the same on both (screenshots only, so lighting is judged roughly). One run each, so a lead, but it matches the 4080 numbers above.