Shaders: limit highlights on small dust sprites and preserve transmission #2156
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2156"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-29T10:01:01Z.
Reproduction
On an RTX 4070 Ti SUPER, moving white specks stand out against the ceiling and dark furniture in the living room from the v107 save. I captured scene colour immediately before and after a single particle draw. It added 560 separate spots with a linear luminance increase above 0.1, each covering 1–7 input pixels. Disabling the draw for a comparison removed the specks. The second same-named particle program and the star pass had no such effect. Scene input was 2560×1440 with DLSS Quality and 3840×2160 output. Related to #695.
Change
Set
VICTORY_PARTICLE_KNEE=0.012to try the opt-in on the identified dual-source pixel program. It estimates projected sprite area from barycentric derivatives and applies a soft shoulder to the brightest emission. The weight fades between areas of 16 and 64 input pixels. Both source colour and transmission use the same weight so that attenuating a mote in front of a bright window also restores background transmission. The selected knee participates in the shader cache key. The default leaves the original translation active.Validation
829188e96. Compared the unmodified compiler, patch disabled and patch enabled on six shader inputs for both 32- and 64-lane target settings. All 36 emitted programs passed the Windows DXIL validator. With the option disabled all six were byte-identical to main at each width. With it enabled only the measured particle program changed. The live comparison was on the 4070 Ti SUPER.The Windows shader-library test binary passed all 462 enabled tests, with the suite's 9 marked tests ignored. I resumed by exact test name after the first shell wait timed out. The Windows Clippy check stops on the existing unused
unwind_copyinvictory-loader, tracked by #2019.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by notdxbi on 2026-11-29T14:08:51Z.
Independent confirmation on a different machine and OS. This commit, ported unchanged to Vice-Tay
mainfe7c6e52 apart from Vice-Tay's extraearly_depthargument, on an RTX 5060 8 GB, Linux (Nobara 44, GE-Proton11-14, driver 620.70.06), Series S, DLSS Quality. It's the same exe for both runs, and the only change in the launch settings isVICTORY_PARTICLE_KNEE=0.012. Jason's house, kitchen ceiling, wall and cabinets, pipeline queue empty, 60 s of video plus 20 lossless 2560×1440 frames per run:No new artifacts in either video. The camera and time of day differ between the two loads; details, crops and videos are in TaynanGT/Vice-Tay#444.
AI use: Claude Code (Claude Opus 5.5); the runs were played by hand.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-30T01:09:38Z.
@notdxbi Thanks for porting this to Vice-Tay and measuring it on the 5060. Getting zero specks in the ceiling box in all 20 treated frames is a useful cross-check of the 4070 Ti SUPER result. I also appreciate the note about the different camera positions and time of day. The remaining visual question for this draft is how the same material looks when dust should be bright, for example against a sunlit window. The indoor results support keeping the knee opt-in while that is open.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-30T09:21:50Z.
Checked in another scene, as you asked: a small restaurant interior in the city (Series S, DLSS performance, RT off, frame generation off). RTX 3090 24 GB, i9-14900K, 32 GB.
Builds: v2026.11.29.05 (
41adb551) against the same with this PR merged (8cd858b0) andVICTORY_PARTICLE_KNEE=0.012. A player walked the room while I captured stills and 10-frame bursts (about 3 frames a second) during movement.Untreated and treated were different sessions, so the sun angle differed. The comparison is by eye, not a count like yours.
🤖 Generated with Claude Code