mirror of
https://github.com/4ld0-vito/victory-gta6.git
synced 2026-11-26 21:30:45 +01:00
[PR #4] Perf Phase 8: pipeline wait budget, exact builder translation, ray-tracing groundwork #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
4ld0/victory-gta6#3
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?
📋 Pull Request Information
Original PR: https://github.com/4ld0-vito/victory-gta6/pull/4
Author: @4ld0-vito
Created: 11/25/2026
Status: 🔄 Open
Base:
docs/agent-handoff← Head:perf/phase-8-indirect-gpu-sync📝 Commits (10+)
81c77c3Phase 8a perf: guard outside the journal lock, Deferred::gpu_writes side list25dacdaPipeline wait budget switch, name missing structure-builder programsb64e8f0Shaders: every structure-builder program translates exactly on wave32 hostsb7a8c4eMemory by address: root views of such shaders take the directory's copy166060eDiagnostics for the structure-builder crash: copy-back conflicts, write traceb2804b2Shader tests: the structure builder's group prefix sums against the CPUf895202Indirect windows survive draws that cannot store to buffers2a1969edocs: perf handoff status 2026-11-25 (pipeline budget, GPU-bound indirect mesh, ray-tracing crash hunt)3ab173aPhase 8b perf: rotating 8+16 indirect scratch pool, no-op done(), 16-window cache, diag miss stats45ebc00victory precompile: translate shader containers into the run's shader cache ahead of time📊 Changes
20 files changed (+1206 additions, -191 deletions)
View changed files
📝
apps/victory/src/main.rs(+11 -0)➕
apps/victory/src/precompile.rs(+78 -0)📝
crates/victory-gpu/src/copystat.rs(+26 -1)📝
crates/victory-gpu/src/draw.rs(+206 -64)📝
crates/victory-gpu/src/host.rs(+108 -32)📝
crates/victory-gpu/src/indirect.rs(+175 -36)📝
crates/victory-gpu/src/lib.rs(+2 -0)📝
crates/victory-gpu/src/memory.rs(+24 -0)📝
crates/victory-gpu/src/pipeline.rs(+7 -0)📝
crates/victory-gpu/src/pipeline/make.rs(+14 -3)📝
crates/victory-gpu/src/shader_cache.rs(+21 -0)📝
crates/victory-gpu/src/shadow.rs(+56 -6)📝
crates/victory-gpu/src/watch.rs(+37 -9)➕
crates/victory-gpu/src/writetrace.rs(+128 -0)📝
crates/victory-hle/src/modules/d3d12x.rs(+4 -0)➕
crates/victory-shader/src/emit/builder_tests.rs(+127 -0)📝
crates/victory-shader/src/emit/host.rs(+27 -1)📝
crates/victory-shader/src/emit/lower.rs(+113 -39)📝
crates/victory-shader/src/emit/mod.rs(+2 -0)📝
docs/perf-handoff.md(+40 -0)📄 Description
Stacked on #3 (
docs/agent-handoff). Code only, no game data.Summary
VICTORY_PIPELINE_BUDGET_MS, default 500 ms as before): with=8the heavy gameplay scene goes from 1.0–1.7 fps to a steady 4–6 fps. The title had stood idle for 400–1,700 ms a frame waiting for a few new pipelines.lane_uniformfixpoint and from constant lane masks in local waves.Root::Uav).docs/perf-handoff.md§0.writes_exguards outside the journal lock, kept in order by aGUARD_ORDERmutex.Deferred::gpu_writesside list.VICTORY_BACK_CONFLICTS,VICTORY_BACK_TITLE_WINS,VICTORY_WRITE_TRACE.docs/perf-handoff.md§0 describes the new bottleneck. The GPU is 80–90% busy in indirect mesh draws, about 25–40 µs per command. It also lists the dead ends ruled out this session and the ordered next steps.Tests
cargo test -p victory-gpu: 115 passed, 0 failed, 1 ignored.cargo test -p victory-shader: 186 passed, 2 ignored.cargo xtask policy: 169 files ok.ERRORlines.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.