perf(gpu): coalesce direct barriers, skip no-wait join drains, and remove pipeline-name lock contention #415
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!415
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-415"
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?
@Androtim on GitHub · 2026-12-04 00:55 UTC · original
Androtim:perf/card-pool-barrier-coalesce-and-pull-early→main· +1166 −47 · 6 files · 3 commits · merged 2026-12-04 01:59 UTCSummary
Ports verified GPL-3.0 CPU/GPU frame-time optimizations from \ReTerryDavis/ReVIctory\ and \lobomfz/VIctory-xmem, audited against MiniVI's existing 8 GB VRAM eviction, \STREAM_BOUND, and \PLACED_FILL_CARD\ paths:
Ported Changes
Ports verified GPL-3.0 CPU/GPU frame-time wins: 1. ReTerryDavis/ReVIctory (GPL-3.0, commit b90eeea4a9ddd03dcb7a797b07094700e606efee): - Skip redundant GPU joint drains between joined submission parts when no GPU-satisfied wait or cross-queue borrow separates them (queue/behind.rs, host.rs), preserving full part boundaries for batch.refresh_front* and GPU joint cuts for waited/cross-queue parts in both direct and Handoff submission paths. - Add host::rec::Rec barrier-coalescing wrapper around HostList.list (VICTORY_JOIN_BARRIERS, VICTORY_JOIN_BARRIERS_MORE, default on) and route direct host.rs / list.rs ResourceBarrier calls through Rec::barriers, with an explicit flush before ID3D12GraphicsCommandList2::WriteBufferImmediate. - Note: small device-local card buffer suballocation is already handled in MiniVI by ahead::CardPool (alloc_pooled_card up to 1 MiB with COM reclaim and idle 4 MiB heap trimming for 8 GB VRAM), so no duplicate non-trimming card_pool allocator was added. 2. lobomfz/VIctory-xmem (GPL-3.0, commit 00aa4d38820e94c2f85d14dcf93ee7e12d9d735f, PR #335): - Replace the 64-stripe Mutex array in pipeline::library::same_name with an exact-name NameGate (Mutex<HashSet<String>> + Condvar) so distinct pipeline names never contend during parallel PSO library loads. - Note: lobomfz/VIctory-xmem commit 6064c04d86b5968518007223f7752364991e695d (pull: judge card copies early when clearly slower) targets the um/pull.rs BAR-resident memory pull subsystem, which is not present in MiniVI.github-bot referenced this pull request2026-12-04 01:07:21 +00:00
@Androtim on GitHub · 2026-12-04 01:01 UTC · original
Triage (
c27416dd, CI queued):+782/-40, 6 files, zero opt-in toggles —VICTORY_JOIN_BARRIERS&VICTORY_JOIN_BARRIERS_MOREare default-on=0kill-switches): no-waitJOIN_SENDdrain skip (queue/behind.rs,host.rs),Recdirect barrier coalescing (host/rec.rs), and exact-name pipeline-library lock (name_gate.rsfromlobomfz/VIctory-xmem#335).#282) (specifically checkingRec::barriersauto-flush before every raw command-list call /WriteBufferImmediate/ UAV hazard,waited_partsboundary soundness, andname_gatepanic/unwind cleanup) + Gate 3 plain---release1440p/4K A/B +--features diagnosticsvisual check.crates/victory-gpu/src/host.rs(shared with#413ƞ) — merge sequentially.