victory-gpu: opt-in multi-queue async compute and copy timeline engine #266

Open
github-bot wants to merge 2 commits from github-bot/gh-266 into main AGit
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 12:57 UTC · original
Vladimir-Human:feat/async-timeline-multi-queue → main · +4928 −98 · 3 files · 2 commits · open

Summary

Adds an opt-in (VICTORY_ASYNC_COMPUTE=1, off by default, A/B-able under diagnostics) multi-queue GPU timeline engine (crates/victory-gpu/src/async_timeline.rs) wired minimally into crates/victory-gpu/src/host.rs and crates/victory-gpu/src/lib.rs, complementing the existing VICTORY_ASYNC_SUBMIT=1 pipeline in queue/behind.rs.

Architecture & Soundness

  • Dedicated hardware queues: Creates dedicated D3D12_COMMAND_LIST_TYPE_COMPUTE and D3D12_COMMAND_LIST_TYPE_COPY queues paired with reusable per-queue command allocator/list pools (QueueEngine) and per-queue ID3D12Fence timelines.
  • Strictly GPU-side synchronization on the hot path: Producer queues signal their ID3D12Fence after ExecuteCommandLists, and consumer queues issue ID3D12CommandQueue::Wait before ExecuteCommandLists with zero CPU fence waits in the submission loop. All cross-queue buffers strictly obey D3D12 D3D12_RESOURCE_STATE_COMMON implicit promotion/decay rules (0 D3D12 Debug Layer warnings or errors).
  • Atomic cross-queue HazardTracker: Enforces RAW, WAR, and WAW GPU waits across Direct, Compute, and Copy under a single lock order (hazards outer -> compute / copy / direct_sent inner) via execute_direct_tracked and execute_slot_tracked, eliminating TOCTOU races between submitting and relay-landing threads.
  • Zero-aliasing compute passes & host integration (host.rs):
    • Offloads independent card-buffer CARD_COMPARE rehash passes and post-title-list compare passes onto the async compute queue, using a dedicated 256-byte compute-only dummy UAV buffer for mode-0 rehash so work.differs.0 is never aliased across queues.
    • Pre-prepares async rehash lists before recording Direct sync so preparation errors fall back cleanly to Direct inline rehash, and fails fast on dispatch/synchronization errors instead of leaving hashes or compare flags stale.
    • Tracks declared, picked.written, picked.looked, and fallback Direct compare resources (CardPlan::differs_key) through execute_direct_tracked.
    • Adds a pooled VRAM upload bounce path (submit_upload_bounce) on the async copy queue (CopyBufferRegion staging -> VRAM bounce + GPU-side direct_queue->Wait).
  • Fault-safe queue management: Retains un-signaled post-ExecuteCommandLists slots in QueueEngine::abandoned without advancing sent, peeks before popping on acquire_open CPU waits so live _keep COM resources are never prematurely dropped on error, and rejects u64::MAX fence values in wait_fence_cpu.

Multi-Queue Overlap Benchmark (ID3D12QueryHeap + Wall Clock)

4 flights x 48 MiB staging->VRAM DMA upload on Copy + concurrent Direct compute + 16x CARD_COMPARE on Async Compute vs serialized Direct queue (bit-exact checksum parity 0xadaa30e5):

Configuration Adapter Serialized Direct Multi-Queue Overlap Calibrated Overlap Speedup (Wall / GPU)
Default HW (production) NVIDIA GeForce RTX 4070 SUPER wall=22.72 ms | GPU=22.34 ms wall=12.08 ms | GPU_union=11.84 ms 9.12 ms 1.88x (+88.1%) / 1.89x (+88.7%)
HW + diagnostics (VICTORY_D3D12_DEBUG=1) NVIDIA GeForce RTX 4070 SUPER wall=24.01 ms | GPU=23.14 ms wall=13.17 ms | GPU_union=11.65 ms 10.24 ms 1.82x (+82.3%) / 1.99x (+98.6%)
WARP + diagnostics (VICTORY_D3D12_DEBUG=1, 2 MiB/flight) Microsoft Basic Render Driver wall=42.48 ms | GPU=34.14 ms wall=36.98 ms | GPU_union=26.44 ms 17.36 ms 1.15x (+14.9%) / 1.29x (+29.1%)

(Independent re-run also confirmed wall=1.76x / GPU=1.78x on default HW, wall=1.75x / GPU=1.79x on HW diagnostics, and wall=1.30x / GPU=1.35x on WARP diagnostics, all with 0 D3D12 debug errors.)

Verification

  • cargo clippy -p victory-gpu -- -D warnings, --all-targets, and --features diagnostics --all-targets: 0 warnings.
  • cargo xtask policy --staged & cargo test -p xtask: pass (11/11); git diff --check clean.
  • HW (NVIDIA GeForce RTX 4070 SUPER, VICTORY_D3D12_DEBUG=1, --test-threads=1):
    • async_timeline (default & --features diagnostics): 10/10 passed (0 D3D12 debug errors/warnings; includes 8-flight Copy->Compute->Direct->Readback ordering with 0 CPU waits in submit loop, RAW/WAR/WAW hazard stress, bit-for-bit async vs Direct CARD_COMPARE, 2-thread 24-round Direct-write vs Copy-readback stress with 0 torn reads, u64::MAX guard, and calibrated overlap benchmark).
    • With VICTORY_ASYNC_COMPUTE=1: host::relay_tests 3/3, host::late_tests 3/3, queue::behind 5/5.
  • WARP (Microsoft Basic Render Driver, VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_WARP=1, --test-threads=1):
    • async_timeline (--features diagnostics): 10/10 passed (0 D3D12 debug errors/warnings).
**@⁠Vladimir-Human** on GitHub · 2026-11-27 12:57 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/266) `Vladimir-Human:feat/async-timeline-multi-queue` → `main` · +4928 −98 · 3 files · 2 commits · open ## Summary Adds an opt-in (`VICTORY_ASYNC_COMPUTE=1`, off by default, A/B-able under `diagnostics`) multi-queue GPU timeline engine (`crates/victory-gpu/src/async_timeline.rs`) wired minimally into `crates/victory-gpu/src/host.rs` and `crates/victory-gpu/src/lib.rs`, complementing the existing `VICTORY_ASYNC_SUBMIT=1` pipeline in `queue/behind.rs`. ### Architecture & Soundness - **Dedicated hardware queues:** Creates dedicated `D3D12_COMMAND_LIST_TYPE_COMPUTE` and `D3D12_COMMAND_LIST_TYPE_COPY` queues paired with reusable per-queue command allocator/list pools (`QueueEngine`) and per-queue `ID3D12Fence` timelines. - **Strictly GPU-side synchronization on the hot path:** Producer queues signal their `ID3D12Fence` after `ExecuteCommandLists`, and consumer queues issue `ID3D12CommandQueue::Wait` before `ExecuteCommandLists` with **zero CPU fence waits** in the submission loop. All cross-queue buffers strictly obey D3D12 `D3D12_RESOURCE_STATE_COMMON` implicit promotion/decay rules (`0` D3D12 Debug Layer warnings or errors). - **Atomic cross-queue `HazardTracker`:** Enforces RAW, WAR, and WAW GPU waits across Direct, Compute, and Copy under a single lock order (`hazards` outer -> `compute` / `copy` / `direct_sent` inner) via `execute_direct_tracked` and `execute_slot_tracked`, eliminating TOCTOU races between submitting and relay-landing threads. - **Zero-aliasing compute passes & host integration (`host.rs`):** - Offloads independent card-buffer `CARD_COMPARE` rehash passes and post-title-list compare passes onto the async compute queue, using a dedicated 256-byte compute-only dummy UAV buffer for mode-0 rehash so `work.differs.0` is never aliased across queues. - Pre-prepares async rehash lists before recording Direct `sync` so preparation errors fall back cleanly to Direct inline rehash, and fails fast on dispatch/synchronization errors instead of leaving hashes or compare flags stale. - Tracks `declared`, `picked.written`, `picked.looked`, and fallback Direct compare resources (`CardPlan::differs_key`) through `execute_direct_tracked`. - Adds a pooled VRAM upload bounce path (`submit_upload_bounce`) on the async copy queue (`CopyBufferRegion` staging -> VRAM bounce + GPU-side `direct_queue->Wait`). - **Fault-safe queue management:** Retains un-signaled post-`ExecuteCommandLists` slots in `QueueEngine::abandoned` without advancing `sent`, peeks before popping on `acquire_open` CPU waits so live `_keep` COM resources are never prematurely dropped on error, and rejects `u64::MAX` fence values in `wait_fence_cpu`. ## Multi-Queue Overlap Benchmark (`ID3D12QueryHeap` + Wall Clock) 4 flights x 48 MiB staging->VRAM DMA upload on Copy + concurrent Direct compute + 16x `CARD_COMPARE` on Async Compute vs serialized Direct queue (bit-exact checksum parity `0xadaa30e5`): | Configuration | Adapter | Serialized Direct | Multi-Queue Overlap | Calibrated Overlap | Speedup (Wall / GPU) | | --- | --- | --- | --- | --- | --- | | Default HW (production) | NVIDIA GeForce RTX 4070 SUPER | `wall=22.72 ms \| GPU=22.34 ms` | `wall=12.08 ms \| GPU_union=11.84 ms` | `9.12 ms` | **`1.88x (+88.1%)` / `1.89x (+88.7%)`** | | HW + `diagnostics` (`VICTORY_D3D12_DEBUG=1`) | NVIDIA GeForce RTX 4070 SUPER | `wall=24.01 ms \| GPU=23.14 ms` | `wall=13.17 ms \| GPU_union=11.65 ms` | `10.24 ms` | **`1.82x (+82.3%)` / `1.99x (+98.6%)`** | | WARP + `diagnostics` (`VICTORY_D3D12_DEBUG=1`, 2 MiB/flight) | Microsoft Basic Render Driver | `wall=42.48 ms \| GPU=34.14 ms` | `wall=36.98 ms \| GPU_union=26.44 ms` | `17.36 ms` | **`1.15x (+14.9%)` / `1.29x (+29.1%)`** | *(Independent re-run also confirmed `wall=1.76x / GPU=1.78x` on default HW, `wall=1.75x / GPU=1.79x` on HW diagnostics, and `wall=1.30x / GPU=1.35x` on WARP diagnostics, all with `0` D3D12 debug errors.)* ## Verification - `cargo clippy -p victory-gpu -- -D warnings`, `--all-targets`, and `--features diagnostics --all-targets`: **0 warnings**. - `cargo xtask policy --staged` & `cargo test -p xtask`: **pass (11/11)**; `git diff --check` clean. - **HW (`NVIDIA GeForce RTX 4070 SUPER`, `VICTORY_D3D12_DEBUG=1`, `--test-threads=1`):** - `async_timeline` (default & `--features diagnostics`): **10/10 passed** (`0` D3D12 debug errors/warnings; includes 8-flight Copy->Compute->Direct->Readback ordering with `0` CPU waits in submit loop, RAW/WAR/WAW hazard stress, bit-for-bit async vs Direct `CARD_COMPARE`, 2-thread 24-round Direct-write vs Copy-readback stress with `0` torn reads, `u64::MAX` guard, and calibrated overlap benchmark). - With `VICTORY_ASYNC_COMPUTE=1`: `host::relay_tests` **3/3**, `host::late_tests` **3/3**, `queue::behind` **5/5**. - **WARP (`Microsoft Basic Render Driver`, `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_WARP=1`, `--test-threads=1`):** - `async_timeline` (`--features diagnostics`): **10/10 passed** (`0` D3D12 debug errors/warnings).
Add an opt-in (`VICTORY_ASYNC_COMPUTE=1`, off by default, A/B-able under
`diagnostics`) multi-queue GPU timeline engine in `async_timeline.rs` with
dedicated `D3D12_COMMAND_LIST_TYPE_COMPUTE` and `D3D12_COMMAND_LIST_TYPE_COPY`
queues and strictly GPU-side `ID3D12Fence` handoffs (`ProducerQueue->Signal`
then `ConsumerQueue->Wait` before `ExecuteCommandLists`, zero CPU fence waits
on the submission hot path):

- Dedicated Copy + Compute queue engines with reusable allocator/list pools,
  abandoned-in-flight retention on failed post-execute `Signal`, safe
  peek-before-pop CPU wait in `acquire_open`, and explicit `u64::MAX` rejection
  in `wait_fence_cpu`.
- Atomic lock-ordered `HazardTracker` (`hazards` outer -> `compute`/`copy`/
  `direct_sent` inner) across `execute_direct_tracked` and
  `execute_slot_tracked` enforcing RAW/WAR/WAW GPU waits without CPU races
  between submitting and relay-landing threads.
- Dedicated compute-only dummy UAV buffer for mode-0 async rehash so
  `work.differs.0` is never aliased across queues, plus full read/write key
  tracking for Direct inline rehash and fallback Direct compares.
- Pre-prepared async rehash in `card_before` so recording failure falls back
  cleanly to Direct inline rehash, and dispatch failure fails fast instead of
  leaving hashes stale.
- Pooled VRAM upload bounce path (`submit_upload_bounce`) and deferred async
  `CARD_COMPARE` dispatch behind Direct's title list signal.
- 10 unit, HW/WARP D3D12 debug-layer hazard/ordering/concurrency tests and
  calibrated `ID3D12QueryHeap` + wall-clock overlap benchmark.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:00:18 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:01 UTC · original

@⁠Vladimir-Human The checksum comparison is a useful control for queue overlap. I’ll check cross-queue resource lifetime on the fallback and signal-failure paths, especially that a consumer waits for the producing queue and the allocator is kept through completion. The synthetic overlap result can sit alongside a separate in-game A/B.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:01 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/266#issuecomment-7218957586) @⁠Vladimir-Human The checksum comparison is a useful control for queue overlap. I’ll check cross-queue resource lifetime on the fallback and signal-failure paths, especially that a consumer waits for the producing queue and the allocator is kept through completion. The synthetic overlap result can sit alongside a separate in-game A/B.
Address CI diagnostics failure and cross-queue resource lifetime review:

- CI benchmark & software-adapter detection (`async_timeline.rs`):
  - Mark `benchmark_multi_queue_overlap_vs_serialized_direct`
    `#[ignore = "hardware multi-queue overlap benchmark"]` so headless CI
    runs do not run multi-hundred-MiB hardware overlap timing on CPU WARP.
  - Detect software adapters robustly via `DXGI_ADAPTER_FLAG_SOFTWARE`,
    `VendorId == 0x1414`, `"basic render"` adapter description,
    `VICTORY_D3D12_WARP=1`, and safe default `true` on DXGI query failure.
- Cross-queue lifetime & ordering on signal-failure and fallback paths:
  - Track un-signaled producer queues/resources in `HazardTracker` and
    `DirectState`/`QueueEngine::needs_seal` when `Signal` fails after
    `ExecuteCommandLists`. Before any cross-queue consumer runs, attempt a
    recovery `Signal` on the FIFO producer queue (sealing `abandoned`
    allocators/resources into `in_flight` at `seal_val` and forcing
    `ConsumerQueue->Wait(producer_fence, seal_val)`); if sealing fails,
    refuse consumer execution before `ExecuteCommandLists`.
  - Distinguish pre-execute vs post-execute Copy failures in
    `submit_upload_bounce` so active bounce buffers are never recycled into
    the pool after a post-execute `Signal` failure; fall back to `wait_cpu`
    on `wait_on_gpu` failure and abandon/pin the bounce buffer (returning
    `None`) if `wait_cpu` also fails.
  - Track Direct `sync` bounce reads in `host.rs` (`sync_reads` +
    `BounceHandle::note_direct_consumer`) and route `relay_card_back`
    Direct fallback through `execute_direct_tracked` when `AsyncTimeline`
    exists.
  - Retain unconfirmed slots/resources on live-device `Drop`, avoid
    double-closing or recycling broken slots on record/reset errors, and
    add 3 HW/WARP/GBV D3D12 regression tests covering injected Compute,
    Copy, and Direct Signal/Wait failures plus Direct fallback.
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 14:07 UTC · original

@⁠TaynanGT Thanks for reviewing! Pushed 49de7774 addressing both the cross-queue fallback/signal-failure lifetime paths you called out and the headless CI diagnostics run (all 4/4 checks green on run 46012316630):

  • Producer Signal failure after ExecuteCommandLists (async_timeline.rs):
    • execute_slot_tracked_detailed pins the producing CommandSlot (ID3D12CommandAllocator + list) and _keep resources in QueueEngine::abandoned (needs_seal = true, sent not advanced, never returned to idle), and records affected keys via HazardTracker::mark_unsignaled (protected from prune). execute_direct_tracked similarly retains DirectState::unsignaled_queue.
    • Before any cross-queue consumer runs, seal_unsignaled_producers_locked attempts a FIFO recovery Signal(producer_fence, seal_val). If sealing succeeds, abandoned slots move into in_flight tagged with seal_val, hazards.seal_queue upgrades their records, and the consumer emits ConsumerQueue->Wait(producer_fence, seal_val) before ExecuteCommandLists (allocators reclaim only after fence >= seal_val). If sealing fails, the consumer returns Err before ExecuteCommandLists so it never runs ahead of an un-signaled producer.
    • AsyncTimeline::drop runs seal_all_unsignaled() + fence drain + reclaim(), and on a live device (GetDeviceRemovedReason().is_ok()) retains any still-unconfirmed slots/resources rather than destroying an active allocator or buffer.
  • Fallback paths (async_timeline.rs, host.rs):
    • submit_upload_bounce distinguishes SubmitSlotError::BeforeExecute (safe to return bounce to pool) from SignalFailedAfterExecute (keeps bounce pinned in copy.abandoned._keep, never re-pooled, skips on_placed, falls back to Direct staging copy). If wait_on_gpu fails, it falls back to wait_cpu(copy_token); if wait_cpu also fails, it abandons the bounce in abandoned_resources, skips on_placed, and falls back to Direct.
    • host.rs tracks Direct sync bounce reads via sync_reads + BounceHandle::note_direct_consumer (return_bounce confirms both Copy producer and Direct consumer completed before pooling) and routes relay_card_back Direct fallback through execute_direct_tracked whenever async_timeline::existing() is Some (covering Direct fallback and VICTORY_AB off-toggles).
  • CI benchmark & regression tests (async_timeline.rs):
    • Marked benchmark_multi_queue_overlap_vs_serialized_direct #[ignore = "hardware multi-queue overlap benchmark"] and hardened adapter_info() to detect software adapters via DXGI_ADAPTER_FLAG_SOFTWARE, VendorId == 0x1414, "basic render", and VICTORY_D3D12_WARP=1.
    • Added 3 HW + WARP + GBV D3D12 regression tests (VICTORY_D3D12_DEBUG=1 + VICTORY_D3D12_GBV=1, 0 debug/GBV errors): signal_failure_retains_allocator_and_seals_for_consumer, direct_signal_failure_blocks_and_seals_async_consumer, and upload_bounce_fallback_on_signal_and_wait_failure_preserves_lifetime.
  • VICTORY_ASYNC_COMPUTE remains opt-in (0 by default) and A/B-able via VICTORY_AB under diagnostics for an independent runtime A/B comparison.
**@⁠Vladimir-Human** on GitHub · 2026-11-27 14:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/266#issuecomment-7220368288) @⁠TaynanGT Thanks for reviewing! Pushed `49de7774` addressing both the cross-queue fallback/signal-failure lifetime paths you called out and the headless CI diagnostics run (all 4/4 checks green on run `46012316630`): - **Producer `Signal` failure after `ExecuteCommandLists` (`async_timeline.rs`):** - `execute_slot_tracked_detailed` pins the producing `CommandSlot` (`ID3D12CommandAllocator` + list) and `_keep` resources in `QueueEngine::abandoned` (`needs_seal = true`, `sent` not advanced, never returned to `idle`), and records affected keys via `HazardTracker::mark_unsignaled` (protected from `prune`). `execute_direct_tracked` similarly retains `DirectState::unsignaled_queue`. - Before any cross-queue consumer runs, `seal_unsignaled_producers_locked` attempts a FIFO recovery `Signal(producer_fence, seal_val)`. If sealing succeeds, `abandoned` slots move into `in_flight` tagged with `seal_val`, `hazards.seal_queue` upgrades their records, and the consumer emits `ConsumerQueue->Wait(producer_fence, seal_val)` before `ExecuteCommandLists` (allocators reclaim only after `fence >= seal_val`). If sealing fails, the consumer returns `Err` before `ExecuteCommandLists` so it never runs ahead of an un-signaled producer. - `AsyncTimeline::drop` runs `seal_all_unsignaled()` + fence drain + `reclaim()`, and on a live device (`GetDeviceRemovedReason().is_ok()`) retains any still-unconfirmed slots/resources rather than destroying an active allocator or buffer. - **Fallback paths (`async_timeline.rs`, `host.rs`):** - `submit_upload_bounce` distinguishes `SubmitSlotError::BeforeExecute` (safe to return bounce to pool) from `SignalFailedAfterExecute` (keeps bounce pinned in `copy.abandoned._keep`, never re-pooled, skips `on_placed`, falls back to Direct staging copy). If `wait_on_gpu` fails, it falls back to `wait_cpu(copy_token)`; if `wait_cpu` also fails, it abandons the bounce in `abandoned_resources`, skips `on_placed`, and falls back to Direct. - `host.rs` tracks Direct `sync` bounce reads via `sync_reads` + `BounceHandle::note_direct_consumer` (`return_bounce` confirms both Copy producer and Direct consumer completed before pooling) and routes `relay_card_back` Direct fallback through `execute_direct_tracked` whenever `async_timeline::existing()` is `Some` (covering Direct fallback and `VICTORY_AB` off-toggles). - **CI benchmark & regression tests (`async_timeline.rs`):** - Marked `benchmark_multi_queue_overlap_vs_serialized_direct` `#[ignore = "hardware multi-queue overlap benchmark"]` and hardened `adapter_info()` to detect software adapters via `DXGI_ADAPTER_FLAG_SOFTWARE`, `VendorId == 0x1414`, `"basic render"`, and `VICTORY_D3D12_WARP=1`. - Added 3 HW + WARP + GBV D3D12 regression tests (`VICTORY_D3D12_DEBUG=1` + `VICTORY_D3D12_GBV=1`, `0` debug/GBV errors): `signal_failure_retains_allocator_and_seals_for_consumer`, `direct_signal_failure_blocks_and_seals_async_consumer`, and `upload_bounce_fallback_on_signal_and_wait_failure_preserves_lifetime`. - `VICTORY_ASYNC_COMPUTE` remains opt-in (`0` by default) and A/B-able via `VICTORY_AB` under `diagnostics` for an independent runtime A/B comparison.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:25 UTC · original

@⁠Vladimir-Human The seal gives the consumer a fence to wait on after a producer has executed, and the new tests exercise both queue directions. For the gameplay comparison, keep all other switches fixed and capture the Direct, Compute and Copy queue times alongside frame time. The hardware benchmark can stay outside the normal CI run.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/266#issuecomment-7220759963) @⁠Vladimir-Human The seal gives the consumer a fence to wait on after a producer has executed, and the new tests exercise both queue directions. For the gameplay comparison, keep all other switches fixed and capture the Direct, Compute and Copy queue times alongside frame time. The hardware benchmark can stay outside the normal CI run.
Author
Owner

@⁠Garu667 on GitHub · 2026-11-27 18:50 UTC · original

Tested on an RTX 3080 10 GB (Series S, -Machine auto, boat mission autosave, a fresh copy of the save each run, warm caches). One executable: main e45051a + #266, #249, #268 and #295, all opt-in. Each run covers the cutscenes plus the steady side view on the water.

Run Switches fps (median, last 20 lines) Frames over 10 s Longest frame
168 none 8.1 1 26.9 s
169 VICTORY_ASYNC_COMPUTE=1 8.1 0 0.67 s
170 VICTORY_GPU_DETILE=1 (#249) 8.1 2 101.9 s
171 VICTORY_TEXBACK_PARALLEL=1 + VICTORY_BATCH_RETIRE=1 (#268, #295) 8.0 1 62.0 s
173 VICTORY_ASYNC_COMPUTE=1 (repeat) 8.2 0 0.59 s
  • fps: no change from any switch on this CPU-bound scene (the preparing thread is ~80 ms a frame).
  • Stalls: with VICTORY_ASYNC_COMPUTE=1, 2 runs of 2 had no frame over 0.7 s during the cutscenes. Every other run, without it, had at least one 27–102 s stall while the cutscenes stream in. Small sample, but it's the only switch that changed anything here. No crash or card loss in any run.
**@⁠Garu667** on GitHub · 2026-11-27 18:50 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/266#issuecomment-7225919644) Tested on an **RTX 3080 10 GB** (Series S, `-Machine auto`, boat mission autosave, a fresh copy of the save each run, warm caches). One executable: `main` e45051a + #266, #249, #268 and #295, all opt-in. Each run covers the cutscenes plus the steady side view on the water. | Run | Switches | fps (median, last 20 lines) | Frames over 10 s | Longest frame | |---|---|---|---|---| | 168 | none | 8.1 | 1 | 26.9 s | | 169 | `VICTORY_ASYNC_COMPUTE=1` | 8.1 | **0** | **0.67 s** | | 170 | `VICTORY_GPU_DETILE=1` (#249) | 8.1 | 2 | 101.9 s | | 171 | `VICTORY_TEXBACK_PARALLEL=1` + `VICTORY_BATCH_RETIRE=1` (#268, #295) | 8.0 | 1 | 62.0 s | | 173 | `VICTORY_ASYNC_COMPUTE=1` (repeat) | 8.2 | **0** | **0.59 s** | - **fps:** no change from any switch on this CPU-bound scene (the preparing thread is ~80 ms a frame). - **Stalls:** with `VICTORY_ASYNC_COMPUTE=1`, 2 runs of 2 had no frame over 0.7 s during the cutscenes. Every other run, without it, had at least one 27–102 s stall while the cutscenes stream in. Small sample, but it's the only switch that changed anything here. No crash or card loss in any run.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 18:53 UTC · original

@⁠Garu667 Both async runs kept the longest frame under 0.7 s, with the median still around 8 FPS. That’s the stall result to follow on this save. A repeat with just async compute flipped and the same warmed executable would give us the comparison alongside the Direct, Compute and Copy queue times.

**@⁠TaynanGT** on GitHub · 2026-11-27 18:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/266#issuecomment-7225969161) @⁠Garu667 Both async runs kept the longest frame under 0.7 s, with the median still around 8 FPS. That’s the stall result to follow on this save. A repeat with just async compute flipped and the same warmed executable would give us the comparison alongside the Direct, Compute and Copy queue times.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/266/head:github-bot/gh-266'
git switch 'github-bot/gh-266'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-266'
git switch 'github-bot/gh-266'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-266'
git switch 'github-bot/gh-266'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-266'
git switch 'main'
git merge --squash 'github-bot/gh-266'
git switch 'main'
git merge --ff-only 'github-bot/gh-266'
git switch 'main'
git merge 'github-bot/gh-266'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.