gpu(native): VICTORY_SUBMIT_TIMING=1 logs a submission's CPU time entry-to-commit (#461 step 1) #491
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!491
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-487"
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?
@AnastasisKon on GitHub · 2026-11-27 22:07 UTC · original
AnastasisKon:vibe/submit-timing-1705ac→main· +44 −0 · 2 files · 1 commits · merged 2026-11-28 00:38 UTCWhat this changes
Refs #465, step 1 only.
NativeHost::execute(the nativeExecuteCommandLists) now times itself whenVICTORY_SUBMIT_TIMING=1(off by default) and logs one line per submission:prep— everything before the passes are encoded:follow_title_pagesand per-commandprep(pipeline translation on first bind, descriptor remirror, memory syncs);encode_commit—backend.submit_passes(encoding passes into command buffers + commit);total— entry to commit.Off, the cost is one
OnceLockread of the switch per submission. The switch is documented indocs/native-host.md("Bring-up diagnostics"); the line format is pinned by a unit test. Step 2 (encoding parts on worker threads) is deliberately not in this PR.How it was tested
cargo test -p victory-gpu— 413 passed (incl. the newsubmit_timing_line_splits_prep_from_encode_commit), 0 failed, on the arm64 host with the Metal Shader Converter presentcargo test -p victory-hle -p victory -p xtask— passcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— pass (RC=0)cargo xtask policy— pass (398 files ok)VICTORY_SUBMIT_TIMING=1(plustools/macos/run-summary.sh) is the follow-up on a machine with a game copyChecklist
VICTORY_*variable (VICTORY_SUBMIT_TIMING) and documented in docs/native-host.md@Olima34 on GitHub · 2026-11-28 00:37 UTC · original · requested changes
Thanks for this PR! We're helping the maintainer clear the queue tonight, and main has moved a lot (the preview branch landed as
86cefd22, then a batch of PRs; main is nowa6a58361). This branch now conflicts with main indocs/native-host.md.Could you merge current
maininto the branch (a merge commit is fine, no need to rebase) and resolve the conflict? It's only the docs paragraph. Once GitHub shows it as mergeable and CI is green on the new head, we'll read it through and merge it if it holds up.@Olima34 on GitHub · 2026-11-28 00:40 UTC · original
Please disregard my change request above: it crossed with the maintainer merging this PR (land/prs-2), so the conflict is resolved on main. Thanks!