gpu(native): VICTORY_TRACE_UNMAPPED_LEVELS=1 — host bytes of wholly unmapped mip levels (#458 measure-first) #496
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/496"
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-27T22:15:33Z.
What this changes
Refs #458, the measure-first step only (no behaviour change; the levels-on-demand remake stays for after the measurement).
PoolTable::mapped_len(addr, len): bytes of a range currently mapped in a live pool, coalescing adjacent mappings likeread_mapped_with. Pinned bymapped_len_sums_overlaps_and_ignores_gaps_and_dead_pools.VICTORY_TRACE_UNMAPPED_LEVELS=1(off by default, documented in docs/native-host.md): every 64 submissions, one lineunmapped levels: <MB>MB in <n> levels of <n> textures (f<fmt>=<MB>MB …)— the bytes of mip levels whose title pages are all unmapped, total and per format (six largest). Title-level bytes stand in for host bytes (same texel count); slice 0's range stands in for every slice's — both noted in the doc entry. The per-texture aggregation is the pureunmapped_level_bytes, pinned byunmapped_level_bytes_counts_only_wholly_unmapped_levels.Off, the cost is one
OnceLockread of the switch per submission.How it was tested
cargo test -p victory-gpu— 414 passed (incl. the 2 new tests), 0 failed, 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, 0 errors)cargo xtask policy— pass (398 files ok)VICTORY_TRACE_UNMAPPED_LEVELS=1on a machine with a game copy, read with run-summary.shChecklist
VICTORY_*variable (VICTORY_TRACE_UNMAPPED_LEVELS) and documented in docs/native-host.mdImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T00:37:21Z.
Review: CHANGES_REQUESTED
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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:18:29Z.
Merged current main into the branch and resolved the conflict keeping both sides, as requested. CI is green on the new head and the PR shows mergeable. Ready for re-review.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:31:51Z.
Re-requesting review: conflicts with current main are resolved, CI is green on the latest head, and the earlier approval was noted as still standing. Ready to merge when you are.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T15:27:23Z.
The branch is now based on the current public
main(26817285), which already contains the #467/#494/#503 merges, and GitHub showsmergeable=true(the earlier conflict was against the newer private main). The requested shape is in place: the `VICTORY_TRACE_UNMAPPED_LEVELS` paragraph in `docs/native-host.md`. Could you re-review when you get a chance?Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T18:16:48Z.
Re-requesting review: the head
c8dd335ealready merges publicmain26817285, andgit merge-treeshows no conflicts against currentmain— thedocs/native-host.mdparagraph is resolved with main's version plus this PR's section. CI is green on this head. Ready to merge when you are.View 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.