Add borderless fullscreen option #22

Closed
github-bot wants to merge 3 commits from gh-pr/22/head into gh-pr/22/base
Owner

@⁠BottyIvan on GitHub · 2026-11-29 15:27 UTC · original
BottyIvan:pr/borderless-fullscreen → main · +412 −3 · 5 files · 3 commits · closed without merging

Summary

  • Add an opt-in launcher option for borderless fullscreen on the primary display.
  • Request the window change asynchronously on the owning thread to avoid blocking initialization when the title does not pump messages.
  • Preserve the existing windowed default, explain aspect-ratio stretching and log success or failure.

Validation

  • After merging upstream main 1afad58, the launcher self-test, 7 fullscreen tests and 11 lifecycle tests passed under Proton; the diagnostic build succeeded. An earlier version passed focused Clippy.
  • Brief manual RX 7800 XT / Fedora / Proton checks: windowed mode and borderless mode were tried; the log confirms borderless at 2560x1440 with frame generation enabled. Alt+Tab and mouse appeared to work. The fullscreen session was stopped manually and recorded exit code 1, so it was not a normal-exit test.
  • An earlier combined local build ran past 8,192 frames and exited normally. Other platforms and longer post-merge runs remain unverified.
  • Draft pending review and CI.
**@⁠BottyIvan** on GitHub · 2026-11-29 15:27 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/22) `BottyIvan:pr/borderless-fullscreen` → `main` · +412 −3 · 5 files · 3 commits · closed without merging ## Summary - Add an opt-in launcher option for borderless fullscreen on the primary display. - Request the window change asynchronously on the owning thread to avoid blocking initialization when the title does not pump messages. - Preserve the existing windowed default, explain aspect-ratio stretching and log success or failure. ## Validation - After merging upstream main `1afad58`, the launcher self-test, 7 fullscreen tests and 11 lifecycle tests passed under Proton; the diagnostic build succeeded. An earlier version passed focused Clippy. - Brief manual RX 7800 XT / Fedora / Proton checks: windowed mode and borderless mode were tried; the log confirms borderless at 2560x1440 with frame generation enabled. Alt+Tab and mouse appeared to work. The fullscreen session was stopped manually and recorded exit code 1, so it was not a normal-exit test. - An earlier combined local build ran past 8,192 frames and exited normally. Other platforms and longer post-merge runs remain unverified. - Draft pending review and CI.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 03:06:37 +00:00
github-bot closed this pull request 2026-12-01 03:06:37 +00:00
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-29 22:01 UTC · original

Thank you. Posting it to the window's own thread and undoing it on failure is the right way. Three things I would ask for first: handle the message only when VICTORY_FULLSCREEN=1, say in the text that a picture of another shape is stretched, and log a warning when the window never answers. Frame generation, Alt+Tab and the mouse lock still need a look in game. It should stay off by default.

**@⁠Slaktarn700** on GitHub · 2026-11-29 22:01 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/22#issuecomment-7263336067) Thank you. Posting it to the window's own thread and undoing it on failure is the right way. Three things I would ask for first: handle the message only when `VICTORY_FULLSCREEN=1`, say in the text that a picture of another shape is stretched, and log a warning when the window never answers. Frame generation, Alt+Tab and the mouse lock still need a look in game. It should stay off by default.
Author
Owner

@⁠BottyIvan on GitHub · 2026-11-30 23:51 UTC · original

I tested the updated build in game. Fullscreen now works, and the requested checks appeared to pass. The log confirms borderless presentation:

INFO victory_gpu::host: presenting borderless on primary monitor left=0 top=0 width=2560 height=1440

I also ran the fullscreen and lifecycle tests under Proton.

**@⁠BottyIvan** on GitHub · 2026-11-30 23:51 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/22#issuecomment-7295603210) I tested the updated build in game. Fullscreen now works, and the requested checks appeared to pass. The log confirms borderless presentation: ```text INFO victory_gpu::host: presenting borderless on primary monitor left=0 top=0 width=2560 height=1440 ``` I also ran the fullscreen and lifecycle tests under Proton.
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-30 23:57 UTC · original

Thank you, good to hear that it works in game. Could you push the updated version here? The pull request still holds only the commit from 29 November, and it conflicts with main now (1afad58), so it needs a rebase; a new pull request against main is just as good. Off by default, please, and with the line in the text that a picture of another shape is stretched.

**@⁠Slaktarn700** on GitHub · 2026-11-30 23:57 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/22#issuecomment-7295728489) Thank you, good to hear that it works in game. Could you push the updated version here? The pull request still holds only the commit from 29 November, and it conflicts with main now (1afad58), so it needs a rebase; a new pull request against main is just as good. Off by default, please, and with the line in the text that a picture of another shape is stretched.
Author
Owner

@⁠BottyIvan on GitHub · 2026-12-01 00:23 UTC · original

I pushed the requested changes and merged main at 1afad58 into this branch rather than rebasing. Fullscreen remains off by default, and the launcher text notes stretching for a different aspect ratio.

I briefly retested windowed and fullscreen modes on Fedora / Proton with an RX 7800 XT. The log confirms borderless presentation at 2560x1440 with frame generation enabled; Alt+Tab and mouse appeared to work. I stopped the fullscreen session manually; it recorded exit code 1, so this was not a normal-exit test.

The launcher self-test, 7 fullscreen tests and 11 lifecycle tests also passed under Proton after the merge.

**@⁠BottyIvan** on GitHub · 2026-12-01 00:23 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/22#issuecomment-7296279580) I pushed the requested changes and merged main at `1afad58` into this branch rather than rebasing. Fullscreen remains off by default, and the launcher text notes stretching for a different aspect ratio. I briefly retested windowed and fullscreen modes on Fedora / Proton with an RX 7800 XT. The log confirms borderless presentation at 2560x1440 with frame generation enabled; Alt+Tab and mouse appeared to work. I stopped the fullscreen session manually; it recorded exit code 1, so this was not a normal-exit test. The launcher self-test, 7 fullscreen tests and 11 lifecycle tests also passed under Proton after the merge.
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-12-01 02:18 UTC · original

Taken into bd906bd under your name, thank you. Two changes: the code is in a file of its own (host/fullscreen.rs; host.rs was over the size limit), and on a screen of another shape the picture keeps its own, in the middle, with black beside it instead of stretched (tried on a 3440x1440 screen: 21 to 22 fps as in a window, no crash).

**@⁠Slaktarn700** on GitHub · 2026-12-01 02:18 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/22#issuecomment-7298462109) Taken into bd906bd under your name, thank you. Two changes: the code is in a file of its own (`host/fullscreen.rs`; `host.rs` was over the size limit), and on a screen of another shape the picture keeps its own, in the middle, with black beside it instead of stretched (tried on a 3440x1440 screen: 21 to 22 fps as in a window, no crash).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.