RT-on stability: background shader work off and 12 ripe blocks by default #4728
No reviewers
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!4728
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4727"
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?
@Gamination on GitHub · 2026-12-01 03:53 UTC · original
Gamination:rt-stability-defaults→main· +21 −14 · 4 files · 1 commits · openWhat it changes
Two defaults, for RT-on stability:
VICTORY_D3D12_BACKGROUND: background shader work is now off by default.SetBackgroundProcessingMode(DISABLE_BACKGROUND_WORK)is called unlessVICTORY_D3D12_BACKGROUND=1. This switch already existed; before this change it was opt-in with=0.VICTORY_RIPE_BLOCKS: play no longer forces it to 0. The texture pool's own default of 12 blocks made ahead now applies.scripts/play-nvidia.ps1sets 12 to match.The README rows for both settings are updated.
Why
On an RTX 4060 Laptop GPU (8 GB, 32 GB RAM), software RT on, walking a scripted loop, there were two different failures. Neither was memory running out: card memory (6.4-6.6 GB) and process memory were the same in runs that failed and runs that survived.
1. Silent device removal (background work on).
GetDeviceRemovedReasonreturnedDXGI_ERROR_DEVICE_REMOVEDitself. There was no TDR or nvlddmkm event, and the DRED breadcrumbs were empty.GetDeviceRemovedReasoncaught the driver's "D3D Background Thread"s deep innvwgf2umx. The kernel had refused our creation calls about 500 ms beforeGetDeviceRemovedReasonreported the removal.2. Hang (
DXGI_ERROR_DEVICE_HUNG, nvlddmkm event 153), withVICTORY_RIPE_BLOCKS=0.MakeResidentcalls on a new arena and new blocks.Testing
Each run below was 20 minutes, RT on, walking:
RIPE_BLOCKS=0RIPE_BLOCKS=12Caveat: these runs used a tree based on
e1251c31(v2026.11.30.03) plus other open PRs and diagnostics, not this branch. The change applies to current main unchanged.Performance: with RT on, frames were 360-680 ms (GPU-bound) on this laptop whether background work was on or off. A frame-time effect with RT off has not been measured beyond the existing note (run 54).
Checks on this branch:
cargo clippy -p victory -p victory-gpu --all-targets --locked: no warnings in the changed files. The 5 warnings it prints are already on main, inhost/font.rs,host/menu.rsandhost/panel.rs.cargo test -p victory --locked play: 32 passed.Related
RESTreuses texture ranges after 2.5 s of wall-clock time without waiting for the submission. That may be another cause of the hang, since RT-on frames here take 1-2 s; not yet tested.🤖 Generated with Claude Code
@KruIN689 on GitHub · 2026-12-01 05:50 UTC · original
Independent test, desktop card, hardware RT, while moving: the frame-time effect this PR's description leaves open.
Setup
VICTORY_RIPE_BLOCKS=0.VICTORY_HW_RT=1, Series X native 1440p.VICTORY_D3D12_BACKGROUND=0;VICTORY_RIPE_BLOCKS=12, which is what this PR makes the default. The log confirmed both took effect. "main" is that exe as is.What I read from it
Limits
Tested with the help of Claude Code (Claude Opus 5.5).
@KruIN689 on GitHub · 2026-12-01 06:38 UTC · original
Follow-up: the two switches apart. Same PC, build and setup as above, in the same session right after it. Arms:
bg0: onlyVICTORY_D3D12_BACKGROUND=0;ripe12: onlyVICTORY_RIPE_BLOCKS=12;main: defaults.Run in turns: bg0, ripe12, main, ripe12, bg0, main. The last main run never got past a loading spot (17 draws a frame), so it's left out.
What I read from it
RIPE_BLOCKS=0. It showed here with 12.So the result is: together, fewer hitches in two of two pairs earlier. Apart, the noise wins. I'm running 3 more pairs of both together against defaults before we change palmlight's play defaults, and I'll add them here.
Tested with the help of Claude Code (Claude Opus 5.5).
@KruIN689 on GitHub · 2026-12-01 07:24 UTC · original
Three more pairs, both switches together against defaults. Same setup, run in turns (main, PR, main, PR, main, PR):
What I read from it
For palmlight I'm leaving our play defaults as they are for now.
Tested with the help of Claude Code (Claude Opus 5.5).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.