present: VICTORY_PILLARBOX=1 draws black bars in full screen on screens that are not 16:9 #139
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!139
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-139"
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?
@ARustyOven on GitHub · 2026-12-02 00:14 UTC · original
ARustyOven:feat/pillarbox-fullscreen→main· +467 −11 · 6 files · 2 commits · merged 2026-12-02 02:44 UTCBlack bars for full screen on ultrawide (and 16:10) screens
With
VICTORY_FULLSCREEN=1(from #7) the window covers the screen, but the swap chain stays the size of the title's 16:9 frame, and the presentation layer stretches it to fill the window. On a 21:9 or 32:9 monitor the image is stretched sideways. This happens whenVICTORY_FULLSCREEN_RESisn't set, or is set to the monitor's own resolution. The image only ends up on the left side whenVICTORY_FULLSCREEN_RESis set smaller than the monitor, because the window itself is then smaller and sits in the top left corner.With
VICTORY_PILLARBOX=1the swap chain is made the window's size, and the frame is drawn into the largest 16:9 rectangle at the centre, with the rest cleared to black: bars at the sides on ultrawide screens, above and below on 16:10.VICTORY_FULLSCREEN=1VICTORY_PILLARBOX=1The performance overlay is no longer stretched
The frame-rate panel is now drawn on the window-sized back buffer, after the frame is placed. So with
VICTORY_PILLARBOX=1it keeps its proportions on an ultrawide screen too, where it used to be stretched along with the frame.Its sizes still describe the title's frame, not the window: at the default 2560x1440 output it shows
1706x960 -> 2560x1440, not2293x960 -> 3440x1440, since the black bars are neither rendered nor upscaled. The panel is laid out at the window's size but given the frame's size for what it reports.Notes
crates/victory-gpu/src/pillarbox.rsholds the fit maths and a small shader. Inhost.rsthe presenter uses it in place ofCopyResourceand checks the window's size each frame, so a resize is picked up.cargo test -p victory-gpu --lib pillarbox). Tested in game on an ultrawide monitor: the frame is centred with black bars instead of stretched, the overlay is no longer stretched, and its render and output sizes leave out the bars.🤖 Generated with Claude Code
@ARustyOven on GitHub · 2026-12-02 02:07 UTC · original
Hold off from merging. Adding a fix where the performance overlay correctly shows the resolution that is being rendered.
@ARustyOven on GitHub · 2026-12-02 02:15 UTC · original
Fix is now implemented. Performance overlay no longer includes the pillarbox in the resolution output.