Guard reflection holds against empty indirect dispatches #127
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/TaynanGT--Vice-Tay!127
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-127"
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?
@TaynanGT on GitHub · 2026-11-27 03:11 UTC · original
TaynanGT:fix/reflection-nonempty-dispatch→main· +606 −30 · 3 files · 3 commits · merged 2026-11-27 04:11 UTCBrings the reflection hold from #99 onto
mainwith CowboyBingus’s authorship preserved. This also addresses the empty indirect-dispatch finding in #120.For a single uncounted indirect resolve, the GPU reads the actual group counts after the clamp. If any dimension is zero, the hold leaves the reflection texture untouched. Counted and multiple-record indirect resolves skip the hold. The ordinary ambient pass keeps its existing root signature.
[0, 0, 0]. A valid dispatch changed the texel.I’d like to repeat the RTX 5070 Ti scene before merging. The new
indirect_gatedandmultiplecounters show which path was recorded. The repeat should also check the image and GPU time.After an ExecuteIndirect with a count buffer the record count is read on the card and may be 0, and a Dispatch may ask for no groups. The resolve then writes nothing, and a hold recorded after it would rewrite what the image held before. In both cases the hold is no longer recorded. The first time each happens while `ambient::after` would record a hold (the image's view is not checked), an INFO line says so: "reflections not held after a counted indirect dispatch" and "reflections not held after a dispatch of no groups". To show which ways the title dispatches the resolves, they are counted by how they were dispatched: holds after a Dispatch and after an ExecuteIndirect without a count buffer; counted and empty resolves left alone (counted only while `ambient::after` would record a hold; the image's view is not checked). The counts are logged at INFO at the first noted resolve 100 or more frames after the first noted one, then at most once every 1000 frames ("reflections' resolves: held after a direct dispatch, held after an indirect one without a count, not held after a counted one or a direct one of no groups", with frames, direct, indirect, counted and empty). Nothing changes while the hold is off (VICTORY_AMBIENT_REFLECT or VICTORY_AMBIENT_REFLECT_IN unset): no program has the reflections' role (Role::Reflect), so neither the new branches nor the counts are reached. Not covered: an ExecuteIndirect without a count buffer whose records ask for no groups; the hold still follows it. Test: ambient::tests::counts_by_dispatch_are_due_after_the_first_note_then_every_so_often.@CowboyBingus on GitHub · 2026-11-27 03:50 UTC · original
Ran #127 on the same setup as before.
Setup: a
--profile diag --features diagnosticsbuild of486076d3(exe md53fe5c262…). RTX 5070 Ti, Windows 11, Series S,play.ps1 -Machine 4070(log line 1: "Settings for the 4070."), withVICTORY_AMBIENT_REFLECT=1andVICTORY_AMBIENT_REFLECT_INset. The builder was off (32 "structure builder, which is off" lines). One run capped at 230 s, with a screenshot about every 2.3 s (98 shots).Counters (every count line in the log; the last is at frames=2100):
Timing. The figures below are from the frame lines with more than 1,000 draws (n=31 for #127, n=32 for
fa90adf). We have no per-pass GPU timing for this run. The card-busy figure is the average of the "the card about N% busy" lines over the whole log (218 lines for #127, 220 forfa90adf).486076d3)fa90adf(previous run)Eyes: in the close-ups at s0118, s0122, s0125 and s0127, the irises are dark, with no blue-white glow.
Separate observation. In this run one character's face had multicoloured block patches at s0113 and s0115. The same kind of patches appear in an earlier run of plain
4e3e366(default 4090 settings, no reflection switches, onlyVICTORY_GPU_TIMING=1). Their cause is not established.@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 03:59 UTC · original · edited 2026-11-27 04:02 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
486076d486076dℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@TaynanGT on GitHub · 2026-11-27 03:59 UTC · original
Thanks for repeating the scene on the RTX 5070 Ti, @CowboyBingus. The 4,201 gated calls and the close-ups with dark irises answer the functional check. I also tested #127 against current
main: all 22 enabled ambient and indirect tests passed, including the WARP test for empty dispatches. I moved this out of draft for review as an opt-in change. The 48.8 vs 46.65 ms frame medians describe the two runs, and a per-pass capture would be needed to measure the cost of the hold itself. The face patches can be tracked separately from this change.@Geckomacabre on GitHub · 2026-11-27 04:36 UTC · original
A question about using this: which name text did you pass in
VICTORY_AMBIENT_REFLECT_INfor this title? The PR describes "text in the names of the programs that resolve the reflections" and says you usedVICTORY_AMBIENT_REFLECT=1, but not the text. We had held a different pass before (the history update at table 1, dword 40) and would like to switch to this hold with the same programs you tested, so the image lookup at (1,128)/(1,136) matches.🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-27 04:39 UTC · original
@Geckomacabre The original port in avatarmanz/VIctory-7900XTX#314 matches
CS_TemporalResolve2_OpaqueandCS_TemporalResolve1_Alpha. Vice-Tay takes comma-separated substrings, so the equivalent launcher settings are:Keep the ambient stand-in enabled and the structure builder off, then check for
role=Reflectin the log. The 5070 Ti report says the filter was set. @CowboyBingus, could you confirm whether you used this exact pair on486076d3?@CowboyBingus on GitHub · 2026-11-27 04:47 UTC · original
@TaynanGT Yes, that exact pair. The #127 run (exe md5
3fe5c262…, built from486076d3) hadVICTORY_AMBIENT_REFLECT=1, andVICTORY_AMBIENT_REFLECT_INset to the two names in your comment, comma-separated in the same order, according to the settings recorded for the run.The log has one
role=Reflectline:The structure builder was off: there are 32 "structure builder, which is off" lines. The stand-in was on:
play.ps1setsVICTORY_AMBIENT=0.8, and the line above shows level 0.8.@TaynanGT on GitHub · 2026-11-27 04:52 UTC · original
Thanks for confirming the exact pair, @CowboyBingus. That ties
CS_TemporalResolve2_Opaque,CS_TemporalResolve1_Alphato the486076d3RTX 5070 Ti run. Therole=Reflectline confirms the 1280×720 target with the ambient stand-in at 0.8 and the builder off.