play: 47 folded compute programs run in their exact unfolded form (VICTORY_WAVE_FOLDED_SKIP) #4202
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!4202
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4201"
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?
@marquezlale-creator on GitHub · 2026-11-30 17:22 UTC · original
marquezlale-creator:pr/unfold-exact-compute→main· +786 −820 · 32 files · 11 commits · closed without mergingWhat it changes
Some wave64 compute programs are folded for 32-lane cards (two console lanes per host lane, doubled registers), the costliest form there: e.g. 129-156 console VGPRs become ~258-312 a host thread and spill. These 47 also translate in an exact unfolded form (wave-wide branches, local waves as the allocation idiom, deep skips, "without skips, scalars followed"), so they are named in
VICTORY_WAVE_FOLDED_SKIPinvictory play's defaults and inscripts/play-nvidia.ps1(which keeps play's shader-key switches, #4067).The list (full program names, so a short pattern does not catch variants that must stay folded): shadows (tiled cascades / misc, hair), SSR ray pre-passes, irradiance cache, transmission volumetrics (tiled, local lights, submerged), particle update and pre-render, the particle light atlases, scan mips, tiling, visibility, temporal resolves and DOF-aware scene colour resolves, MinMax reductions, water classification, disocclusion, variance filter, decal classification, defrag relocations, raster classification counts, and the foliage culling (
CS_Tree_BatchCull,_ImposterOnly,CS_DrawBatch).Two of them (
ptfx_CS_lightAtlas_Sprite/_Trail) take a local-waves form that is approximate only in a loop bound; read in their code (#3896 runs them as local waves too). The other 45 are exact.How it was tested
victory translate --validatewithVICTORY_HOST_MAX_WAVE=32and this list: the 47 unfolded and validated, the other 103 folded ones unchanged; 691 of 691 compute programs of one third of the title validated, and the 153 heavy ones.card timetop pipelines). Picture checked in play (shadows, reflections, volumetric light and fog, particles, heat haze) with the first 25; the 22 added since (temporal resolves, MinMax, water, foliage culling...) validated offline the same way.cargo testpassed for the crates it touches:cargo check -p victory --testsyes (a settings change).Please watch trees for flicker with the foliage culling unfolded: an earlier note in
emit/mod.rssays foliage flickered once with the wave-wide forms from an empty cache (v2026.11.29.02).Checked for overlap
🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed