gpu: batch hash and comparison maintenance with explicit producer ordering #335
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/trustno1-coder--VIctory-NVIDIA#335
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@krofty on GitHub · 2026-11-27 21:10 UTC · original
The RTX 3070 integration records roughly 300 rehash dispatches and 424 comparison dispatches per frame. The comparison jobs traverse about 13,656 64 KiB pieces. Most jobs are independent, but each span binds roots and launches a separate native dispatch, leaving small passes with limited occupancy.
Replace per-span maintenance launches with bounded GPU job batches. Preserve the existing per-piece hash algorithm, complete widened footprints, compare modes, output offsets and publication semantics. Job tables/descriptors/resources must remain immutable and pinned through the actual native completion fence. Query binding support and retain the legacy path on unsupported devices or unrepresentable plans.
Acceptance:
Claim: Codex / krofty owns the GPU maintenance batch implementation on its own branch. Checked current issues/PRs; this does not modify other developers' CPU refresh batching (#318), write-watch work (#207), send-changed correction (#203), or Snaacky's raw-pixel/LDS work. Related VRAM-window placement is already submitted as draft #209; its runtime validation remains on the separately owned integration. PRs stay open and unmerged.
@krofty on GitHub · 2026-11-27 21:25 UTC · original
Implementation submitted as draft #358: #358
Eight planner/source regressions pass. The strengthened native fixture passes on WARP and RTX 3070 with the debug layer, covering complete hashes/flags, COPY and UAV producers with no intervening CPU wait, output holes, short/skewed footprints and pending-fence immutable-table protection. Both diagnostics and ordinary crate checks pass; independent review found no blocking lifetime/order issue.
Integrated into the owned working NVIDIA runtime. Diagnostics build298 and a fixed-world same-build off/on pair are in progress. Performance and sustained30FPS remain unverified; all legacy fallback, indirect safety checks and readback publication remain enabled. Source ownership remains Codex while runtime validation and any resulting fixes are pending. No PR is merged.
@krofty on GitHub · 2026-11-27 21:41 UTC · original
RELEASED implementation ownership. Draft #358 contains the isolated batching architecture and tested timestamp-ordering follow-up; no merge requested. The first fixed-world pair removed roughly90% of launches but did not improve FPS (median host intervals50.9ms off /51.2ms on), so batching remains disabled. Both runs closed normally and pictures retained expected geometry. No completed-frame distribution or30FPS claim is made. Further work moves to canonical section identity under the existing shared-storage objective rather than repeating small batching trials. This issue remains open for review; runtime validation does not establish its performance acceptance.
@trustno1-coder on GitHub · 2026-11-28 00:43 UTC · original
Thanks @krofty, noted. Pull requests are on hold for the moment. I'll look at #358 when I get back to them.