Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1617"
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 Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T19:50:56Z.
#1296 (texture mip drop for low-VRAM cards) resolved onto the GPU bundles, by its author. antikohza did the resolution and published it as a branch on top of #1542 (see the comment there); this PR is that branch as it is, so that #1296 can be reviewed and merged on the stack (#1418, #1426, #1439, #1542) instead of conflicting with it. The commits and their authors are not touched.
What it is
#1296 adds
VICTORY_TEXTURE_MIP_DROP(clamped0..=3), a quality switch that drops the top mips of host textures so a 6-8 GB card does not run out of committed memory while the world streams, plus discrete-GPU selection on hybrid laptops (matching the adapter's LUID) and an automatic default: when the variable is not set,drop = 1on a GPU with 8.5 GiB or less of dedicated VRAM,0otherwise; an explicit setting always wins. Its description has the root cause analysis and the measurements (it fixes #737 and #1226).That default changes behaviour for owners of 4-8 GB cards (their textures are halved unless they set the variable), which is the point of the PR and worth a maintainer's decision.
What was reconciled onto the stack
From antikohza's comment on #1542 (
antikohza/VIctory@0d79788):list.rsanddescriptor.rs: merged without conflict.host.rs: #967'sadapter::open()and #1426's device creation kept, a redundantbest_adapter()dropped, the LUID-matchedDEVICE_MEMORYkept.resource.rs:(texture, drop) = host_texture(...)wired into #431's lazyOnceLockinitializer (Resource::host), so the lazy first-use allocation and the retirement after submission combine with the mip drop.texture.rs: #1418's five-argumentdetile_plane()kept for the existing tests, and adetile_plane_with_drop(..., self.mip_drop, ...)added for dropped-mip staging.Verification
I ran the same checks on the branch (Windows 11, RX 6950 XT, Rust 1.98.1, the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 passed, 6 ignored)antikohza reports the same three checks, plus
xtask policy, passing in their fork's CI (run 45473319819). The title was not run. No game data is used or committed.Re-verify in one go
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T19:51:06Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:21:52Z.
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.
See #1296.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:32:19Z.
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/copystat.rs,crates/victory-gpu/src/descriptor/host.rs,crates/victory-gpu/src/device.rs,crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
Pull request closed