GPU: the console follows the adapter's memory (12 GiB or less: series-s) #3112
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3112
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3112"
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?
@borosf on GitHub · 2026-11-26 08:28 UTC · original
borosf:vibe/series-s-by-memory-842ca5→main· +160 −12 · 5 files · 2 commits · openSummary
victory runnow defaults--consoletoauto: the first adapter's dedicated video memory picks the console the title sees — 12 GiB or less runs series-s, anything larger (or an unanswered DXGI query) runs series-x, as before.console::mode_size): 4K on series-x, the series-s target of 2560×1440, so titles that pace by the listed mode get the machine they were told they are on.console::profile_for), unit-tested at the boundaries (no answer, 10 GiB, 12 GiB, 12 GiB + 1, 16 GiB, 24 GiB); the adapter query (profile_by_adapter) runs once at startup before the device is created, matching the adapterD3D12CreateDevice(None, …)takes.--console series-x|series-sstill chooses outright, and the console line prints the adapter's MiB when auto picked it.Verification
-D warnings,cargo test --workspace --locked).cargo clippy -p victory-gpu --all-targets --locked -- -D warningsclean;cargo test -p victory-gpu --lib --locked— 232 passed, the only two failures being the known Intel heap-cap tests (#1744) that pristine main also fails on this card. The three new tests (console::tests::the_profile_follows_the_adapter_once_it_answers,console::tests::the_mode_matches_the_console,dxgi::tests::the_listed_mode_follows_the_console) pass on hardware.--console series-x|series-soverride works.claiming: default the console profile to series-s on cards of at most 12 GB, with matching DXGI modes (#1317 H-1.1)
@fuzeofficlal on GitHub · 2026-11-26 08:51 UTC · original · requested changes
Verified locally on Windows 11:
cargo clippy -p victory-gpu -p victory --all-targets -- -D warnings(default and--all-features): cleanvictory-gpuconsole::+dxgi::(5/5),victorytests (18/18), andcargo xtask policy(191 files ok) all passed.victory_hle::consolere-exportsvictory_gpu::console(sodxgi::modessees the selected profile) and no stray hardcoded3840/2160remains indxgi.rs.Two small issues to fix before merging:
1. Misleading startup output when DXGI returns
None(apps/victory/src/run.rs:84-92)When
dedicatedisNone,profile_for(None)choosesSeriesX, so this printsconsole Xbox Series X (auto: 0 MiB of dedicated video memory)— which contradicts the<= 12 GiB => series-srule and looks like a bug. Please branch ondedicated(e.g.,(auto: {} MiB of dedicated video memory)forSome(bytes)vs(auto: adapter memory unavailable)forNone).2. Hardcoding
EnumAdapters1(0)misclassifies hybrid / multi-GPU systems (crates/victory-gpu/src/console.rs:132-144)On hybrid laptops and dual-GPU desktops where an integrated GPU is wired to the primary display as adapter 0 (
DedicatedVideoMemory= 128-512 MiB) and a 16-32 GiB discrete GPU is adapter 1,EnumAdapters1(0)silently forces--console autotoseries-s— which also causes it to disagree with#3073(high-performance adapter selection) rather than composing with it. QueryingIDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)(skippingDXGI_ADAPTER_FLAG_SOFTWARE) with fallback toEnumAdapters1(0)avoids misclassifying hybrid systems (and can share the same helper once#3073lands).@Dukestar69 on GitHub · 2026-11-26 08:55 UTC · original · approved these changes
Verified on RTX 5090 against
origin/main(63bcca4):cargo test -p victory-gpu --lib console:: -- --test-threads=1: passed.cargo test -p victory-gpu --lib host::tests -- --test-threads=1 --skip dynamic_slots_are_held_until_released: 30/30 passed.cargo test -p victory-hle --lib modules::xsystem:: -- --test-threads=1: 4/4 passed.cargo clippy -p victory-gpu -p victory-hle -p victory --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly defaults the console profile to
series-swhen the host adapter has <= 12 GiB memory while keeping explicit overrides intact.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.