Skip to content

CBL VIctory picks: page-mapping planner + Vice-Tay texture fixes (switches, off) - #6

Open
oceansde012 wants to merge 4 commits into
mainfrom
claude/project-thread-wdn3ug
Open

oceansde012 wants to merge 4 commits into
mainfrom
claude/project-thread-wdn3ug

Conversation

@oceansde012

@oceansde012 oceansde012 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Requested by Vlad · project thread

What

Three changes on top of base f4b48ad, all from the CBL VIctory review (report: reports/cbl-victory-2026-11-27.md in the project files).

Commit What Default
04433b7 CBL dab3f08 page-mapping planner (xmem::map_aliases). Unchanged cherry-pick. Same groups, order and mapping calls, so it should only cut CPU work and long CopyPageMappings hitches (79.7 → 21.4 ms in their one capture). Median frame time stays flat. always on, picture-neutral
3ff35c8 + b38a34e Vice-Tay #137 (53a1f16, from VI-BR-PORT 87dc307 / fxceless #896). When the remap / page-write queue fills, the ranges are compacted instead of dropped, so textures no longer go stale or blocky. VICTORY_TEXTURE_CHANGE_COMPACT=1, off
9a2041a + b38a34e Vice-Tay #141 (7993c1b, from VI-BR-PORT 5c17c8c / fxceless #1241). The alias copy from a GPU-written atlas is redone after a CPU upload in the same list, which fixes stale probe and reflection textures. VICTORY_ALIAS_AFTER_UPLOAD=1, off

With neither switch set, the texture code behaves exactly as base, so the picture should match base run1. The switch code was written by DeepSeek and reviewed by Claude. The host.rs conflicts were resolved by keeping our log text (#137) and placing the upstream field and method verbatim (#141).

A/B on the PC

  1. Base env vs PR head with no switches: the picture must match base run1, and fps should be the same or have fewer hitches.
    • VICTORY_TEXTURE_CHANGE_COMPACT=1: screenshots (blocky / stale surfaces), fps.
    • VICTORY_ALIAS_AFTER_UPLOAD=1: screenshots (water and glass reflections), fps.
  2. Both on.

Verification

🤖 Generated with Claude Code

https://claude.ai/code/session_01FLuVRnS9CFngQ578Jqe1Ty

Cherry-picked unchanged from cocainebunnylaboratories/cblvictoryvi
dab3f08e25d360f675f80cba299dbebaef5998ba (GPL-3.0-or-later). Plans
aligned page groups with an interval for contiguous destinations
instead of materialising every page and a per-group HashSet. Same
groups, same order, same mapping calls; CPU-only.

(cherry picked from commit dab3f08e25d360f675f80cba299dbebaef5998ba)

Co-Authored-By: isuru <isuru2003a@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRnS9CFngQ578Jqe1Ty

Copy link
Copy Markdown
Owner Author

The CI check failure has nothing to do with this PR. Clippy (-D clippy::precedence) fails at crates/victory-formats/src/texture.rs:1346 (i * 7 >> 3). This PR doesn't touch that file, and the same line exists on base f4b48ad. The other PRs on this base (#2, #4, #5) fail the same way. The fix is a one-line parenthesis, (i * 7) >> 3, and it belongs in a separate PR against main.


Generated by Claude Code

edsuuu and others added 3 commits November 27, 2026 16:31
Coalesce full remap and page-write queues without losing coverage of
changed memory. Keep their existing bound and report compaction in the
diagnostics. Cover the overflow with a disjoint-range regression test.

Adapted from edsuuu/VI-BR-PORT commit 87dc3075c735acf9032cc41629ea44bbc6f0d0c8.
The source port follows fxceless/victory-fork #896.

(cherry picked from commit 53a1f16)
Track GPU alias copies separately from texture uploads so a view can read the newer GPU contents. Verify the copy with D3D12 readback.

Adapted from edsuuu/VI-BR-PORT 5c17c8c83b782a9c5f1bfa12fb1d2fa438c23e5b, following kesku in fxceless/victory-fork #1241.

(cherry picked from commit 7993c1b)
VICTORY_TEXTURE_CHANGE_COMPACT=1: a full queue of changed texture
ranges is compacted instead of dropped (#137). VICTORY_ALIAS_AFTER_UPLOAD=1:
an alias copy from a GPU-written source is redone after a CPU upload in
the same list (#141). Unset, both keep the old behaviour, so the picture
stays at base f4b48ad. Tests cover both paths of the queue; the alias
readback test forces its switch on.

Code by DeepSeek (deepseek-v4-pro), reviewed by Claude.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRnS9CFngQ578Jqe1Ty
@oceansde012 oceansde012 changed the title Reduce CPU work grouping GPU page mappings (from CBL VIctory) CBL VIctory picks: page-mapping planner + Vice-Tay texture fixes (switches, off) Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants