Repository navigation
CBL VIctory picks: page-mapping planner + Vice-Tay texture fixes (switches, off) - #6
Open
oceansde012 wants to merge 4 commits into
Open
oceansde012 wants to merge 4 commits into
oceansde012 wants to merge 4 commits into
Conversation
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
Owner
Author
|
The CI Generated by Claude Code |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdin the project files).04433b7dab3f08page-mapping planner (xmem::map_aliases). Unchanged cherry-pick. Same groups, order and mapping calls, so it should only cut CPU work and longCopyPageMappingshitches (79.7 → 21.4 ms in their one capture). Median frame time stays flat.3ff35c8+b38a34e53a1f16, from VI-BR-PORT87dc307/ 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, off9a2041a+b38a34e7993c1b, from VI-BR-PORT5c17c8c/ 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, offWith 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.rsconflicts were resolved by keeping our log text (#137) and placing the upstream field and method verbatim (#141).A/B on the PC
VICTORY_TEXTURE_CHANGE_COMPACT=1: screenshots (blocky / stale surfaces), fps.VICTORY_ALIAS_AFTER_UPLOAD=1: screenshots (water and glass reflections), fps.Verification
CARGO_FEATURE_PURE=1 cargo check -p victory-gpu --all-targets --target x86_64-pc-windows-msvc: OK. Same forvictory-hle --tests.pending_texture_changes_*),alias_groups_*, and the D3D12 readback test for #141 (forces its switch on). Not run in the cloud, becausevictory-gpudoesn't build on Linux. Needscargo teston Windows.checkis red because of the existing clippy error atvictory-formats/src/texture.rs:1346. The same error is on base and on PRs GPU: residency priorities and VRAM reservation (opt-in, picture unchanged) #2, Base f4b48ad + 20 DoubleGhosty stability fixes (no Vice-Tay) #4 and Cut submitting-thread CPU: card_dirty index, skip empty refreshes (switches, off) #5.🤖 Generated with Claude Code
https://claude.ai/code/session_01FLuVRnS9CFngQ578Jqe1Ty