Faces Shader #25
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DoubleGhosty--cool_fox!25
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/25/head"
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?
@Davidjc13 on GitHub · 2026-11-26 17:58 UTC · original
Davidjc13:experimental/wave32→main· +1016 −41 · 14 files · 4 commits · closed without mergingCommit:
9c70815CS_DefragHeap_ComputeRelocations (02384a60fda6f2d0, 128 threads) lowers to wave 32. Each console wave meets its two halves in shared memory. One lane publishes, the other waits on a volatile load. On an RTX 5060 Ti the shader translates, validates, creates its pipeline, and runs. Closing the window writes a counter line. VICTORY_DEFRAG=0 drops only this compute, so the same scene can be timed with it off.
This branch also contains the six 64-thread computes already lowered on main. 6b82bc7d22016cb5 (CS_CollectTriangles_Meshlets, 1024 threads) still does not translate. The view-heap cap and 8 GB texture pressure are unchanged.
Build
Windows x64, MSVC C++ build tools, a Windows SDK, and an NVIDIA GPU with shader model 6.6 and mesh shaders. Rust is pinned by rust-toolchain.toml (1.98.1). rustup installs it on the first build.
git clone -b experimental/wave32 https://github.com/Davidjc13/cool_fox.git
cd cool_fox
git checkout
9c70815cargo build --release --locked -p victory
The binary is target\release\victory.exe. Play-VIctory.cmd uses it when victory-3d-rtx-pareto-residency.exe is not sitting next to the script. Do not run target\diag\victory.exe.
Launch
Point VICTORY_GAME_DIR at your own dump, the folder that contains game_scarlett_master.exe. Use a new shader cache so an older
f4b48adcache is not reused. Leave VICTORY_WAVE_PAIR, VICTORY_WAVE_WIDE, and VICTORY_HOST_WAVE unset. Do not set VICTORY_WAVE_PAIR=1.$env:VICTORY_GAME_DIR = 'D:\path\to\your\dump'
$env:VICTORY_CACHE_DIR = "$env:LOCALAPPDATA\VIctory\cache-wave32"
$env:VICTORY_LOG = 'info'
Remove-Item Env:VICTORY_DEFRAG, Env:VICTORY_WAVE_PAIR, Env:VICTORY_WAVE_WIDE, Env:VICTORY_HOST_WAVE -ErrorAction SilentlyContinue
.\Play-VIctory.cmd pareto-residency *> $env:TEMP\victory-faces.txt
That is Series S, the pareto-residency switches inside the script. Reach the same scene you used before, with both characters on screen, and stay there until the fps line settles (a few samples around the same draw count). Close the window with the title bar. Ending the process from Task Manager skips the counter dump.
What success looks like in the log
CS_DefragHeap_ComputeRelocations counters ... sites=97 lds_reads=11 lds_writes=6 ... iterations_per_meeting="1.00" wait_atomics=0
6b82bc7d22016cb5 still logs does not translate. That is expected.
Same scene with the compute off
$env:VICTORY_DEFRAG = '0'
.\Play-VIctory.cmd pareto-residency *> $env:TEMP\victory-faces-off.txt
02384a60fda6f2d0 logs does not translate, and the counter line is all zeros. Compare on the GPU in the fps lines at a similar draws/frame. On the 5060 Ti, off was about 3–18 ms of GPU and 16–18 fps once the world was up (~5200 draws, 56–65 ms/frame). On was about 23–40 ms of GPU and 13–15 fps (about 70 ms/frame). The extra GPU time is this dispatch. Your 5070 numbers will differ. Please paste both.
Please send back
@Davidjc13 on GitHub · 2026-11-26 18:01 UTC · original
Tested on:
CPU: Ryzen 5 9600X
GPU: Nvidia RTX 5060 Ti 16GB VRAM
RAM: 64GB DDR5 CL30 (4x16GB)
Gameplay was around 18FPS but drops to 5-8FPS
@DoubleGhosty Can you test on your PC?
It would help to know about perfomance and also am doing A/B testing on defrag.
@rafaconvaitis on GitHub · 2026-11-26 19:10 UTC · original
RTX 4070 12 GB, Windows 11, Series S, driver
32.0.16.1664. I tested a narrow opt-in port of your face shader on Cool Foxc3e5c375as part of an integrated renderer build.Offline Wave32 validation of
02384a60fda6f2d0with the portable gate disabled produced zero DXIL outputs and zero PSOs. Enabled, it produced one DXIL shader, passed validation and created one D3D12 pipeline. Instrumentation reported 97 meeting sites, 11 LDS reads and six LDS writes.The game loaded the boat checkpoint, logged the new host pipeline, and continued rendering after 8,588 dispatch submissions of this shader. Both characters were detailed in the boat cutscene. One earlier frame still showed a low-detail player mesh. There was no device-removal event in this first 14-minute observation.
At Follow the plane, the integrated build logged 14.80 median FPS, 16.20 ms GPU and 3,709 draws per frame over one minute. The earlier local build without the face pipeline was at 14.90 FPS, 1.50 ms GPU and 3,571 draws in the same area with missing effects. The integrated build also changed texture residency, buffer windows and legacy shader math. The frame-time difference cannot be attributed to the face kernel from this pair.
@DoubleGhosty on GitHub · 2026-11-26 22:52 UTC · original
All 4 commits from this PR (
bab1267,3f53be9,54cb6ac,9c70815) have been cherry-picked and integrated onto main (commits ebf9299d..72944b1f) with conflicts resolved and verified against workspace clippy (-D warnings) and all 297 victory-shader tests. Closing this PR as merged via cherry-pick. Thanks @Davidjc13!Pull request closed