gpu: batch hash and comparison maintenance with explicit producer ordering #335

Closed
opened 2026-11-27 21:10:26 +00:00 by krofty · 4 comments
krofty commented 2026-11-27 21:10:26 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by krofty on 2026-11-27T21:10:26Z.


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:

  • Explicit producer-to-checker ordering for UAV and COPY producers; an appended checker list alone is not a dependency.
  • Exact output parity for independent legacy jobs, and explicit handling/fallback for overlapping writable hash pieces and output ranges.
  • Bounded descriptor/job capacity, fail-closed layout validation, immutable upload sources, native-fence-qualified reuse and fallback before recording partial batches.
  • Software/native GPU regressions for skew, tails, multiple resources/modes, descriptor capacity, overlapping jobs, blocked-fence reuse and producers submitted with checkers.
  • Diagnostics build via build.sh; fixed-world matched off/on runs, actual dispatch/job counters, reference pictures and crash checks. No FPS claim from dispatch count alone.

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6654528482 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335). Originally posted by [krofty](https://github.com/krofty) on 2026-11-27T21:10:26Z. --- 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: - Explicit producer-to-checker ordering for UAV and COPY producers; an appended checker list alone is not a dependency. - Exact output parity for independent legacy jobs, and explicit handling/fallback for overlapping writable hash pieces and output ranges. - Bounded descriptor/job capacity, fail-closed layout validation, immutable upload sources, native-fence-qualified reuse and fallback before recording partial batches. - Software/native GPU regressions for skew, tails, multiple resources/modes, descriptor capacity, overlapping jobs, blocked-fence reuse and producers submitted with checkers. - Diagnostics build via build.sh; fixed-world matched off/on runs, actual dispatch/job counters, reference pictures and crash checks. No FPS claim from dispatch count alone. 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 commented 2026-11-27 21:25:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by krofty on 2026-11-27T21:25:30Z.


Implementation submitted as draft #358: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7228431720 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7228431720). Originally posted by [krofty](https://github.com/krofty) on 2026-11-27T21:25:30Z. --- Implementation submitted as draft #358: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/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 commented 2026-11-27 21:41:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by krofty on 2026-11-27T21:41:50Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7228674443 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7228674443). Originally posted by [krofty](https://github.com/krofty) on 2026-11-27T21:41:50Z. --- 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 commented 2026-11-28 00:43:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T00:43:35Z.


Thanks @krofty, noted. Pull requests are on hold for the moment. I'll look at #358 when I get back to them.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7231146008 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7231146008). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T00:43:35Z. --- Thanks @krofty, noted. Pull requests are on hold for the moment. I'll look at #358 when I get back to them.
trustno1-coder commented 2026-11-29 19:51:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T19:51:55Z.


Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7261620684 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7261620684). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T19:51:55Z. --- Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#335
No description provided.