Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/602"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T11:45:05Z.
What this changes
Refs #600. Stacks on PR #594 (branch
vibe/pass-timing-55a8d1); once #594 merges, this PR's diff narrows to just this change. Adds adrawmode toVICTORY_PASS_TIMING:=draw(or=draw,<n>) samples at each draw/dispatch boundary inside a render/compute pass (one sample per draw between the pass's start and end samples), and each logged pass then names its 3 slowest draws aspass time draw frame=<f> rank=<r> kind=.. pipe=.. draw=<j> ms=<ms>. Blit passes get no mid samples. The per-command-buffer sample buffer is sized for the submission's passes plus their draws/dispatches/ops (also acrossVICTORY_PASSES_PER_BUFFERpieces).One finding baked into the gate: the switch is enabled by the per-boundary
supportsCounterSamplingpoints (draw/dispatch/blit), notAtStageBoundary. Probed on this Mac (AGXG15X, M4 Pro):AtStageBoundary=truebutsampleCountersInBuffer:atSampleIndex:withBarrier:asserts on compute, render and blit encoders (SIGABRT) — so on that GPU family the switch stays off and the tests skip. On GPUs reporting draw/dispatch/blit support it is on. Documented indocs/native-host.md.How it was tested
cargo test -p victory-metal -- --test-threads=1: 85+ tests pass, includingmetal::tests::draw_mode_samples_each_dispatch_inside_a_pass(two dispatches of the test compute shader in one pass → one pass sample with two per-dispatch intervals; skips cleanly on this Mac's GPU, which rejects counter sampling) and the #594 pass-mode testcargo test -p victory-hle -p victory -p victory-gpu -p xtask(host arm64, serialized per #548): 709 passed, 0 failedcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: clean; host clippy on victory-metal adds no new warningscargo xtask policy: cleangame_*master.exe); a watcher runs the headlessVICTORY_PASS_TIMING=drawmeasurement as soon as it landsChecklist
docs/native-host.mdVICTORY_PASS_TIMING, documented indocs/native-host.mdView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.