perf(gpu): cache ID3D12GraphicsCommandList6 on Rec for mesh draws #20

Closed
github-bot wants to merge 1 commit from gh-pr/20/head into gh-pr/20/base
Owner

@⁠justadudeinbulgaria on GitHub · 2026-11-30 23:19 UTC · original
justadudeinbulgaria:pr/cached-list6-mesh → main · +18 −7 · 3 files · 1 commits · closed without merging

Summary

Caches ID3D12GraphicsCommandList6 once in Rec::new alongside list7 and exposes Rec::list6() (flushing any held barriers first to preserve exact Deref ordering).

Uses list.list.list6() in draw::State::dispatch_mesh and launch::record instead of calling COM QueryInterface/Release on every single mesh draw (thousands of calls per frame).

Verification

  • Unit tests: VICTORY_DYNAMIC_SLAB=0 cargo test --release -p victory-gpu --lib draw:: (7/7 passed).
  • Live verified on RTX 2060 SUPER 8 GB + i5-10600K (~4,700+ mesh draws/frame).
**@⁠justadudeinbulgaria** on GitHub · 2026-11-30 23:19 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/20) `justadudeinbulgaria:pr/cached-list6-mesh` → `main` · +18 −7 · 3 files · 1 commits · closed without merging ## Summary Caches `ID3D12GraphicsCommandList6` once in `Rec::new` alongside `list7` and exposes `Rec::list6()` (flushing any held barriers first to preserve exact `Deref` ordering). Uses `list.list.list6()` in `draw::State::dispatch_mesh` and `launch::record` instead of calling COM `QueryInterface`/`Release` on every single mesh draw (thousands of calls per frame). ## Verification - Unit tests: `VICTORY_DYNAMIC_SLAB=0 cargo test --release -p victory-gpu --lib draw::` (7/7 passed). - Live verified on RTX 2060 SUPER 8 GB + i5-10600K (~4,700+ mesh draws/frame).
Cache ID3D12GraphicsCommandList6 alongside list7 once in Rec::new and expose Rec::list6() (flushing any held barriers first to preserve Deref ordering). Use list.list.list6() in draw::State::dispatch_mesh and launch::record to eliminate thousands of per-frame COM QueryInterface/Release round-trips.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:08:58 +00:00
github-bot closed this pull request 2026-12-02 17:08:58 +00:00
Author
Owner

@⁠ToLIManl on GitHub · 2026-12-01 00:47 UTC · original

Integrated into \main\ in commit \64f4cb9\ (with \Co-authored-by\ attribution, combined cleanly with PR #19 in \host/rec.rs).

Verified with \ ictory-gpu\ release unit tests and live RTX 3060 benchmark runs.

**@⁠ToLIManl** on GitHub · 2026-12-01 00:47 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/20#issuecomment-7296751754) Integrated into \main\ in commit \64f4cb9\ (with \Co-authored-by\ attribution, combined cleanly with PR #19 in \host/rec.rs\). Verified with \ ictory-gpu\ release unit tests and live RTX 3060 benchmark runs.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.