Repository navigation
Conversation
…less Co-authored-by: borosf <borosf@users.noreply.github.com>
Co-authored-by: borosf <borosf@users.noreply.github.com>
fuzeofficlal
left a comment
There was a problem hiding this comment.
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.- Confirmed
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)
println!(
"console {} (auto: {} MiB of dedicated video memory)",
chosen.name(),
dedicated.map_or(0, |bytes| bytes >> 20)
);When dedicated is None, profile_for(None) chooses SeriesX, so this prints console Xbox Series X (auto: 0 MiB of dedicated video memory) — which contradicts the <= 12 GiB => series-s rule and looks like a bug. Please branch on dedicated (e.g., (auto: {} MiB of dedicated video memory) for Some(bytes) vs (auto: adapter memory unavailable) for None).
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 auto to series-s — which also causes it to disagree with #3073 (high-performance adapter selection) rather than composing with it. Querying IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) (skipping DXGI_ADAPTER_FLAG_SOFTWARE) with fallback to EnumAdapters1(0) avoids misclassifying hybrid systems (and can share the same helper once #3073 lands).
Dukestar69
left a comment
There was a problem hiding this comment.
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-s when the host adapter has <= 12 GiB memory while keeping explicit overrides intact.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
…line says when DXGI does not answer Co-authored-by: borosf <borosf@users.noreply.github.com>
|
Both fixed in dd1d3bb. The auto line now prints adapter memory unavailable when DXGI gives no answer (no answer names series-x, as the rule says), and the memory query takes the high-performance adapter via IDXGIFactory6::EnumAdapterByGpuPreference(0, HIGH_PERFORMANCE), skipping the software adapter, with a fallback to EnumAdapters1(0) — the same selection #3073 makes, so hybrid machines profile their discrete card and the two compose. The selection helper can be shared into #3073 when it lands. |
Co-authored-by: borosf <borosf@users.noreply.github.com>
a5133db to
47bb41d
Compare
Co-authored-by: borosf <borosf@users.noreply.github.com>
|
Automated triage for the maintainers. Needs work: needs the maintainer's decision. This adds
CI: Generated by Claude Code |
|
Data for the default decision. This is from the fork (fxceless/victory-fork at 9376fd6 with its PR #798, which keeps the title's own upscaler), not from upstream main. RTX 5070 Ti 16 GB, Windows 11, first gameplay scene, one run each:
So on that tree a 16 GB card also ran faster as Series S, and the 12 GiB rule would keep that card on series-x. One thing to check before series-s becomes the default: on Series S the title presents 2 planes. Plane 0 is the 1920x1080 world. Plane 1 is a 3840x2160 RGBA8 layer that holds the menus, the intro video and the HUD's control hints. On Series X the title blends that layer into one plane itself. A host that shows only plane 0 gives a black intro video and missing menus on series-s (#1854). |
fuzeofficlal
left a comment
There was a problem hiding this comment.
Re-reviewed at 261527bc. Both issues from the previous review are cleanly resolved:
apps/victory/src/run.rs:121-125now prints(auto: adapter memory unavailable)whendedicatedisNoneinstead of0 MiB.crates/victory-gpu/src/console.rs:51-92queriesIDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)first, skipsDXGI_ADAPTER_FLAG_SOFTWARE, and falls back toEnumAdapters1(0).
Verified locally on Windows 11 in a dual-GPU setup (NVIDIA GeForce RTX 5090 32 GiB + AMD Radeon iGPU):
victory_gpu::console::profile_by_adapter()returns(Console::SeriesX, Some(33750515712))(32187 MiB), correctly selecting the discrete RTX 5090 rather than the AMD iGPU.cargo clippy --workspace --all-targets -- -D warnings: cleancargo clippy --workspace --all-targets --all-features -- -D warnings: cleancargo xtask policy:191 files okvictory-gpu:console::2/2 passed,dxgi::3/3 passedvictory: 14/14 unit tests + 4/4 integration tests passed
LGTM.
|
Data point for #3112: Series S on an RTX 3060 12 GB + 4-core i3 (1280x720 internal, 2.6 fps average, ~3.0 settled, CPU-bound) This supports the rule: a 12 GiB card should not run the series-x profile by default. Machine: RTX 3060 12 GB (32-lane waves), Core i3-12100F (4 cores), 32 GB RAM, game on an HDD, Windows 11. Setup: fork 9376fd6 + our port stack + fork #798 (the title keeps its own upscaler, not FSR), Results (b43run1):
Comparison on the same machine, series-x profile on the same line: the same scene ran at about 1.3-1.8 fps with a larger target and a much higher GPU time (GPU 127-159 ms in the fast runs, and up to ~1.9 s in a slow combination of ports described in a fork issue). We do not claim a clean A/B for the profile alone: the series-s run is one change on top of the series-x run (b40run1 at 755 ms/frame, 1.33 fps). So for this class of card the series-s profile is both what fits in memory and the faster one. |
… line Co-authored-by: borosf <borosf@users.noreply.github.com>
|
The three actionable items from the triage are fixed at the new head
On the default itself, that is the maintainer's call; the data we have says a card that size both fits and runs better under series-s: a 12 GB RTX 3060 (i3-12100F, 17 min in the world) ran 389 ms/frame median as series-s — CPU-bound (GPU 85 ms), vs about 755 ms/frame as series-x on the same line — and on an RTX 5070 Ti 16 GB the series-s profile was also the faster one (169 ms vs 257 ms median). HLVM04's second-half note is well taken: a host that shows only plane 0 gives a black intro and missing menus on series-s (#1854), which is worth resolving before auto-on defaults everywhere. Thanks @fuzeofficlal and @Dukestar69 for the re-reviews and the dual-GPU verifications — the selection helper here ( |
Summary
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 (Test report: RTX 5070 (Blackwell), Windows 11, 70564ae: 471 passed, 5 failed, 7 ignored (4 from the 1,000,000 view heap cap) #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)