Window: configurable size ([window] size) for the window VIctory presents in; closing it ends the title #433
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/433"
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 fxceless/victory-fork. Originally posted by sennecools on 2026-11-25T00:49:02Z.
The title keeps its own top-level windows hidden, so the window on screen is the one victory-gpu creates to present in, sized to the frame (3840x2160 for a 4K title) and placed by Windows; on a 4K screen it does not fit.
This adds
[window] sizein victory.toml (orVICTORY_WINDOW_SIZE), applied to that window:title(default): a client area of the frame's size, now shrunk to the primary screen's work area if larger (keeping proportions) and centred. Before, this window was not fitted at all; only the title's own windows were.<width>x<height>(each side 64 to 16384): that client area, centred, shrunk to the work area if it does not fit.fullscreen: a borderless popup over the primary screen (Alt+F4 and the taskbar still close it).The title still renders at its own size and the swap chain stretches the frame to the window, so another aspect ratio distorts the picture. The title's own top-level windows keep only the existing shrink-to-the-screen fit (the code moved from lifecycle.rs to victory_gpu:🪟:place, same behaviour), since a title may read back its client size or styles.
Other changes:
victory configand the run header print the window size; README and victory.example.toml document the key.Relation to "HLE: add a configurable maximum title window size": that PR caps the title's own top-level windows via
VICTORY_WINDOW_MAX; since the title keeps those hidden, it does not change the window you see. Both PRs touchfit()in lifecycle.rs, so whichever merges second needs a rebase; this one covers what that cap is for.Testing: unit tests for config parsing (env over file, errors name their source, the example's value parses) and for the placement as pure functions per mode (4K frame on a 4K work area, pixel sizes, too-large sizes, fullscreen, unknown screen, a larger real frame, close and key-menu handling).
cargo test(WARP) and clippy pass for victory-core, victory-gpu, victory-hle and victory. Not verified in a title run on this branch.This change has also been part of our local combined build, which ran the title in the game on an RX 9070 XT (D3D12, Windows 11) several times tonight without problems from it.
AI-assisted.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:49:14Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
2861612ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.