Wayland report (WAYLAND: PASS on the owner's KDE Plasma 6.8 desktop) and README status
Rows moved to Working only for what ran on that desktop: live enhance, launcher Play with Enhance, the clip key, the display profile and summit doctor on KDE Wayland. Other Wayland desktops, a real native Wayland game and fractional scaling stay Experimental.
This commit is contained in:
1 parent
d3d2cae0e7
commit
97b423e74d
6 files changed
+172
-11
No files matched your search
@@ -48,7 +48,7 @@
|
||||
<p align="center"><sub><b>These are real window captures</b> of <code>summit-gui</code> running fullscreen on the project's KDE neon X11 test machine (software OpenGL, 1920x1080), taken with <code>import -window</code> after keyboard input, from the release-candidate run (<a href="docs/RC_REPORT.md">docs/RC_REPORT.md</a>). <b>The library is a demo</b>: invented game titles with generated cover art and made-up playtime, written to disk as a Steam library so the real scanner reads it (<code>docs/demo/make_demo_home.py</code>). <b>Voidrunner</b> is real (the author's own game, added by hand with its own artwork). Stills show no animation.</sub></p>
|
||||
|
||||
> [!NOTE]
|
||||
> **Pre-alpha.** The launcher, the command-line core and live enhance on an X11 desktop were run end to end on one test machine (one GPU, one game). Wayland capture, real Steam/Heroic launches, a controller, 90/120 Hz and most packaging paths are **not tested**. The table below says which is which.
|
||||
> **Pre-alpha.** The launcher, the command-line core and live enhance were run end to end on an X11 test machine and on one KDE Plasma Wayland desktop (one game each: an XWayland one; native Wayland capture only with a test window). Other Wayland desktops, real Steam/Heroic launches, a controller, 90/120 Hz and most packaging paths are **not tested**. The table below says which is which.
|
||||
|
||||
## Install
|
||||
|
||||
@@ -66,7 +66,7 @@ What was really run: see [Status](#status) (a real install into a scratch prefix
|
||||
|
||||
## Status
|
||||
|
||||
- **Working**: run end to end for real on the test machine during the release-candidate run (2026-11-24; KDE neon X11, RTX 3090 shared with another job, software OpenGL for the display).
|
||||
- **Working**: run end to end for real on the test machine during the release-candidate run (2026-11-24; KDE neon X11, RTX 3090 shared with another job, software OpenGL for the display), or, where the row says Wayland, on the owner's desktop (2026-11-24; Arch, KDE Plasma 6.8 Wayland, RTX 5080; [docs/WAYLAND_REPORT.md](docs/WAYLAND_REPORT.md)).
|
||||
- **Tested**: checked in part (unit tests, sample files, dry runs, a build) but not run for real end to end.
|
||||
- **Experimental**: written, not tested, or known to fall short. Do not rely on it.
|
||||
- **Planned**: not built.
|
||||
@@ -76,19 +76,19 @@ What was really run: see [Status](#status) (a real install into a scratch prefix
|
||||
| Launcher window (`summit-gui`): Home, Library (grid and list), Unfiltered, a page per game, Settings | **Working** | Run fullscreen on the KDE X11 desktop; every screenshot above is that window. Software OpenGL there: **not checked on a GPU-rendered desktop or a TV**. |
|
||||
| Keyboard navigation (arrows, Enter, Esc, Tab between sections) | **Working** | Driven with synthetic X key events on the desktop: Tab walked Home, Library, Unfiltered, Settings; arrows moved focus; Enter opened a game's page, toggled Enhance and pressed Play. `/`, `P` and `F11` were not pressed in this run (they were in the earlier headless and Xvfb checks). |
|
||||
| Layouts (Big picture, Grid, List) and six themes | **Working** | All three layouts and five of the six themes captured live from a saved `ui.toml`; Midnight is the default one. |
|
||||
| Play from the launcher with Enhance | **Working** | Voidrunner: Enhance toggled on with the keyboard, Play pressed: the launcher ran `summit run custom:voidrunner --enhance`, the game and the engine started. Both stopped when the game was killed, and the screen mode was unchanged afterwards. |
|
||||
| Live enhance (`--enhance`): RIFE frame generation + FSR upscaling on a running game's window | **Working on X11** | The engine's picture covered the 1080p screen with the 1280x720 game window under it, the game kept the keyboard. **Slow on that machine**: output 32 to 40 fps while the game drew 52 to 58, because software OpenGL takes about 15 ms to draw a 1080p frame; delay 65 to 97 ms. Not measured on a GPU-driven display. |
|
||||
| Play from the launcher with Enhance | **Working** (X11 and KDE Wayland) | Voidrunner: Enhance toggled on with the keyboard, Play pressed: the launcher ran `summit run custom:voidrunner --enhance`, the game and the engine started. Both stopped when the game was killed, and the screen mode was unchanged afterwards. On KDE Wayland: Play on Voidrunner's page did the same (the launcher used to refuse Enhance there). If the engine can't capture (no window found, the share dialog cancelled), the game now goes on without it. |
|
||||
| Live enhance (`--enhance`): RIFE frame generation + FSR upscaling on a running game's window | **Working on X11 and KDE Wayland** | **KDE Plasma 6.8 Wayland, RTX 5080**: Voidrunner (an XWayland game) read through XWayland, the picture over it on a chosen monitor at 60 fps, FSR draw 0.06 ms, 21 to 38 ms from a frame reaching the engine to the screen; the game kept the keyboard, also in its own fullscreen mode. Native Wayland windows through the ScreenCast portal and PipeWire: run with a test window only (the share dialog once, then restored for new windows with no dialog; about 50 frames a second, CPU copy). Other Wayland desktops untested. **X11**: The engine's picture covered the 1080p screen with the 1280x720 game window under it, the game kept the keyboard. **Slow on that machine**: output 32 to 40 fps while the game drew 52 to 58, because software OpenGL takes about 15 ms to draw a 1080p frame; delay 65 to 97 ms. Not measured on a GPU-driven display. |
|
||||
| In-game overlay with the Summit watermark | **Working** | Stats line (top left) and `summit - git.molberg.cloud/alex/summit` (bottom left) are on screen in the engine's window. `--no-watermark` turns the watermark off (earlier check). Not drawn into saved clips. |
|
||||
| Instant replay clips: global save key (Ctrl+Alt+R), clip lengths from Settings | **Working on X11** | Buffer 60 s, clip 30 s: Ctrl+Alt+R during play saved a 30.1 s H.264 1280x720 MP4 that ffprobe reads and ffmpeg decodes. **This run found a bug and fixed it**: the global key used to save the whole buffer (60 s) and ignore the configured clip length. Wayland global key (xdg-desktop-portal): written, not tested. |
|
||||
| Instant replay clips: global save key (Ctrl+Alt+R), clip lengths from Settings | **Working on X11 and KDE Wayland** | **KDE Wayland**: Ctrl+Alt+R through the GlobalShortcuts portal saved clips while the game had the keys (needs the installed `summit.desktop`, which gives Summit an app id; without it, an X11 key grab through XWayland works while an XWayland game has the keys, also run). **X11**: Buffer 60 s, clip 30 s: Ctrl+Alt+R during play saved a 30.1 s H.264 1280x720 MP4 that ffprobe reads and ffmpeg decodes. **This run found a bug and fixed it**: the global key used to save the whole buffer (60 s) and ignore the configured clip length. |
|
||||
| `install.sh` | **Working (one machine)** / dry-run elsewhere | Real run into a scratch prefix (`SUMMIT_PREFIX`) on an Ubuntu 24.04 machine, with the checkout supplied through `SUMMIT_SRC_DIR` instead of the clone: built, copied the two binaries and the engine, made the venv; `import torch` there gave 2.11.0+cu128. **This run found a bug and fixed it**: with an NVIDIA GPU the venv got PyPI's torch 2.15+cu132 (CUDA 13.2; the test machine's driver stops at 13.0) and the cu128 step did nothing; torch is now installed from the cu128 index first. Not run on the neon test machine itself, not as a non-root user, not into `/usr/local`, and the engine on the test machine ran from its existing venv. Other distros: `--dry-run` only. |
|
||||
| Steam scan (all library folders, installed or not), Steam playtime, "most played" | **Tested** | Sample libraries, including the demo one above. Not run against a real Steam install in this run. |
|
||||
| Heroic (Epic, GOG) and Lutris detection | **Tested** | Sample files only. |
|
||||
| A reason for every detected entry (Unfiltered); heuristic detection; Windows `.exe` outside a Wine prefix listed as Software | **Tested** | The Unfiltered screenshot shows the reasons for the demo library's Steam entries on the real window. Heuristic and `.exe` detection: unit tests and sample folders, not a real disk full of games. |
|
||||
| Hours played: Steam's own for Steam games, Summit-tracked sessions for everything else | **Tested** | Unit tests and the demo library; Summit's own tracker ran with Voidrunner earlier. `state.json` is now changed under a file lock, so the launcher and `summit run` saving at once both keep their change (checked: 2 x 40 parallel `summit pin`). |
|
||||
| Add a game from the launcher (Library > **+ Add a game**, or **ADD** on a folder found on disk) | **Tested** | New since the RC run: the desktop's file dialog picks the file that starts the game, a second dialog asks for its name (guessed from the folder, skipping `bin`, `x86_64` and the like), the library reloads and the game's page opens. Checked on Xvfb with a stand-in zenity, both ways in; not on a real desktop or with kdialog. |
|
||||
| `summit doctor` readiness list | **Tested** | New since the RC run: says whether the engine, its venv, torch with CUDA, the model, `ffmpeg`, `xrandr`, `xdg-open` and a file dialog are there, and what each missing one turns off. Run on the build machine (no venv there, so the torch line was not exercised for real); unit tests. |
|
||||
| `summit doctor` readiness list | **Working** (KDE Wayland) / **Tested** | Says whether the engine, its venv, torch with CUDA, the model, `ffmpeg`, `xrandr`, `xdg-open` and a file dialog are there, and what each missing one turns off. On Wayland also XWayland, the ScreenCast and GlobalShortcuts portals, `summit.desktop` for the app id, PipeWire and GStreamer's `pipewiresrc`, KWin, the monitor tool and the GPU. Run on the KDE Wayland desktop (all ok, torch 2.11+cu128 on the RTX 5080) and on the build machine; unit tests. |
|
||||
| Pin to Home, custom artwork | **Working** / **Tested** | Pins from the CLI and the launcher; `summit art`. **New since the RC run**: the launcher's **Change artwork** opens the desktop's file dialog (kdialog on KDE, zenity elsewhere) and the cover and backdrop change at once: checked on Xvfb with a stand-in zenity, not on a real desktop. |
|
||||
| Display profile applied at launch (monitor, resolution, refresh) and put back | **Working on X11** | Earlier on the test machine: `summit run` switched the output from its custom mode to 1280x800 @ 74.99 Hz and back when the game exited. Not repeated in this run (the profile used had the default mode). KDE Wayland and wlroots command plans: unit tests only. GNOME Wayland: skipped with a message. |
|
||||
| Display profile applied at launch (monitor, resolution, refresh) and put back | **Working on X11 and KDE Wayland** | KDE Wayland: `summit run` switched HDMI-A-1 from 1920x1080 @ 119.98 to @ 60 Hz and back, four times, with `kscreen-doctor` picking the mode by id (that monitor has two modes named `1920x1080@120`, so the old name-based plan could restore the wrong one). X11, earlier: from a custom mode to 1280x800 @ 74.99 Hz and back. wlroots: unit tests only. GNOME Wayland: skipped with a message. |
|
||||
| Per-game profile editor (Profile on a game's page) | **Working** (earlier run) | Listed the monitor's real xrandr modes; every change is written to the profile. Not opened in this run. Focus is stored only (raising the game window is not built). |
|
||||
| `summit enhance clip.mp4` (RIFE on a file) | **Working** (earlier run) | 30 fps 1080p to 60 fps at 14 ms per generated frame on the RTX 3090. |
|
||||
| Game controller navigation | **Experimental** | Reads `/dev/input/js*`; decoding and mapping unit tested, no real controller. |
|
||||
@@ -96,14 +96,14 @@ What was really run: see [Status](#status) (a real install into a scratch prefix
|
||||
| RTX Video Super Resolution (`rtx-vsr`) | **Experimental** | Wired to the engine, not tested. |
|
||||
| 90/120 Hz output, choosing a monitor by name | **Experimental** | Wired, one virtual display only. |
|
||||
| PS5 Remote Play and capture cards | **Experimental** | Wired as `ps5` / `capture:<name>` sources, no hardware. |
|
||||
| Wayland (window capture for Enhance, global keys) | **Experimental** | Enhance refuses to start on Wayland; the portal path for the save key is untested. |
|
||||
| Wayland on GNOME, sway, Hyprland; a real native Wayland game; fractional scaling | **Experimental** | Written for any desktop with the ScreenCast portal, run only on KDE Plasma at scale 1 with a native test window. Without KWin the engine can't tell which native window is the game (the share dialog picks it) or where it is (the picture covers the `--monitor` screen). |
|
||||
| `.deb` (`packaging/deb/build.sh`) | **Tested** | Builds, contents checked with `dpkg-deb`; never installed. |
|
||||
| AUR PKGBUILD, AppImage | **Experimental** | Not built or run. |
|
||||
| One-click "Add to Steam" with SteamGridDB artwork, "My PS5" / "Capture Card" entries, lsfg-vk, DLSS, Flatpak | **Planned** | |
|
||||
|
||||
## Clips
|
||||
|
||||
The engine keeps a rolling buffer of what you played (hardware encoded where possible), like the PS5's Share button. Pick how far back to keep (15 s to 10 min) and what a save writes (15 s, 30 s, 1 m, 3 m, 5 m or 10 m) in Settings. **Ctrl+Alt+R saves a clip from any window on X11**, so you never have to leave the game; in the engine's own window **R** saves the default length and **Ctrl+1 to Ctrl+6** a chosen one. A clip is never longer than the buffer holds. Clips land in `~/Videos/Summit/<game>/` (a folder per game, named after the library entry) as plain MP4 files; **Settings > Clips folder** opens it. The folder per game is new since the RC run (unit tested; the RC clip went to the old `~/Videos/SmoovPlay/`).
|
||||
The engine keeps a rolling buffer of what you played (hardware encoded where possible), like the PS5's Share button. Pick how far back to keep (15 s to 10 min) and what a save writes (15 s, 30 s, 1 m, 3 m, 5 m or 10 m) in Settings. **Ctrl+Alt+R saves a clip from any window** (on X11 with a key grab, on KDE Wayland through the GlobalShortcuts portal), so you never have to leave the game; in the engine's own window **R** saves the default length and **Ctrl+1 to Ctrl+6** a chosen one. A clip is never longer than the buffer holds. Clips land in `~/Videos/Summit/<game>/` (a folder per game, named after the library entry) as plain MP4 files; **Settings > Clips folder** opens it. The folder per game is new since the RC run (unit tested; the RC clip went to the old `~/Videos/SmoovPlay/`).
|
||||
|
||||

|
||||
|
||||
@@ -150,7 +150,7 @@ summit profile set default --framegen rife --upscaler fsr
|
||||
summit enhance clip.mp4 --out smooth.mp4 # file in, 60 fps file out
|
||||
summit enhance ps5 # PS5 Remote Play, live window (untested)
|
||||
summit enhance capture:0 --profile my-console # capture card, live window (untested)
|
||||
summit enhance window:Voidrunner # a running game's window, live (X11)
|
||||
summit enhance window:Voidrunner # a running game's window, live (X11, Wayland)
|
||||
```
|
||||
|
||||
The engine needs an NVIDIA GPU and its own Python environment (`engine/`, torch with CUDA). `install.sh` sets that up with `uv` (see the install row in the table for what was run).
|
||||
@@ -166,6 +166,13 @@ summit enhance window:Voidrunner # or: enhance a game that is alr
|
||||
|
||||
`summit run <id> --enhance` starts the game, waits for its window (up to `--wait` seconds), starts the engine on it with the game's profile (monitor, fullscreen, upscaler, frame generation, model, `target_hz`), and stops both when either one exits. A window can also be named with `--window` (`class:NAME`, `pid:N`, `xid:N` or part of the title) for games whose window belongs to another process.
|
||||
|
||||
How it works on Wayland (run on KDE Plasma 6.8, see [docs/WAYLAND_REPORT.md](docs/WAYLAND_REPORT.md)): the engine looks for the game among XWayland windows and, on KDE, among KWin's own window list. An **XWayland** game (Proton, Wine and most older games) is read exactly as on X11, through XWayland, with no dialog. A **native Wayland** game goes through the desktop's ScreenCast portal: the desktop asks once which window to share, Summit keeps the permission (`~/.config/summit/screencast-token`) and later runs, also of a restarted game, start without asking. Its frames come over PipeWire through GStreamer (`gst-launch-1.0 pipewiresrc`, a CPU copy, about 18 % of one core at 1080p). In both cases the picture is an XWayland window that KWin keeps above the game, fullscreen games included, and that never takes the keyboard. `summit doctor` lists what is missing. Gamescope was tried (it runs and upscales with its own FSR on that desktop) but is not used: it has no frame generation.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
|  |  |
|
||||
| KDE Wayland: Voidrunner (XWayland) started from the launcher, Ctrl+Alt+R through the portal | KDE Wayland: a native Wayland test window through the portal; each green block is a key the window got with the picture on top |
|
||||
|
||||
How it works (X11): the engine redirects the game's window off screen with the Composite extension and reads it 60 times a second through `ffmpeg`'s x11grab, leaving out grabs where nothing changed, so frames come at the game's own rate. Its output is a borderless window on top of the game that never takes focus and lets clicks through: over the game's window, or over the whole monitor with `fullscreen = true` (that is where the upscaler has something to do). Stats and the watermark `summit - git.molberg.cloud/alex/summit` are drawn in that window; `--no-watermark` hides the watermark.
|
||||
|
||||
| | |
|
||||
@@ -183,7 +190,7 @@ What was measured, and what was not (test VM: RTX 3090 shared with another job,
|
||||
- Fullscreen with FSR to 1080p: only about 33 output frames a second, because software OpenGL takes 15 ms to draw each one. **On that VM fullscreen is slower than the game itself.** With a real GPU-driven display this step is expected to take well under a millisecond, but that has not been measured.
|
||||
- Not tested: a real 30 fps game (Voidrunner ran at about 50), 90/120 Hz output, two monitors and `--monitor`, a compositor with direct scanout, games started through Steam or Proton, exclusive-fullscreen games, mouse-driven games in fullscreen mode (clicks go through to whatever is under the pointer, and the picture is scaled, so the pointer does not line up).
|
||||
|
||||
Limits: X11 sessions only (on Wayland it stops with a message). Needs the `ffmpeg` program. The grab polls, so it does not know when the game draws: a 60 fps game can show an occasional repeated or skipped frame. While the picture sits over a game the engine has no keys of its own (they all go to the game): close the game to stop. SIGTERM, SIGINT or SIGHUP to `summit` itself stops the game and the engine and puts the monitor's mode back (exit code 128 + the signal; SIGKILL cannot be caught). Checked with stand-in processes; the mode restore after a signal has not been tried on a real display yet. `SUMMIT_ENGINE_ARGS` passes extra flags to the engine, e.g. `SUMMIT_ENGINE_ARGS=--no-graph` on a GPU short of memory.
|
||||
Limits: needs the `ffmpeg` program. The grab polls, so it does not know when the game draws: a 60 fps game can show an occasional repeated or skipped frame. While the picture sits over a game the engine has no keys of its own (they all go to the game): close the game to stop. SIGTERM, SIGINT or SIGHUP to `summit` itself stops the game and the engine and puts the monitor's mode back (exit code 128 + the signal; SIGKILL cannot be caught). Checked with stand-in processes; the mode restore after a signal has not been tried on a real display yet. `SUMMIT_ENGINE_ARGS` passes extra flags to the engine, e.g. `SUMMIT_ENGINE_ARGS=--no-graph` on a GPU short of memory.
|
||||
|
||||
## The launcher
|
||||
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
WAYLAND: PASS
|
||||
|
||||
# Wayland report
|
||||
|
||||
Run on 2026-11-24 on the owner's desktop: Arch Linux, KDE Plasma 6.8.2 Wayland (KWin 6.8.2, `wayland-1`, XWayland
|
||||
`:0`), NVIDIA GeForce RTX 5080 (driver 615.78.08), three monitors at scale 1 (HDMI-A-1 1920x1080 left, DP-1
|
||||
1920x1080 @ 240 Hz middle, DP-2 2560x1600 right). Everything ran from `~/summit-test` (source, `cargo build
|
||||
--release` there, engine venv made with `uv venv -p 3.12` plus torch 2.11.0+cu128; torch lists `sm_120` and ran a
|
||||
CUDA matmul on the 5080). Summit's config, data, cache and clips were pointed into `~/summit-test` with the XDG
|
||||
variables. Tests ran on HDMI-A-1 except where noted.
|
||||
|
||||
PASS means the whole path below ran on that desktop and was looked at: **Voidrunner started with Enhance on
|
||||
Wayland, from the launcher's Play button and from `summit run custom:voidrunner --enhance`; the engine's picture
|
||||
with the stats line and the watermark sat over the game; the game kept getting keys; Ctrl+Alt+R through the
|
||||
GlobalShortcuts portal saved a clip; killing the game stopped the engine and put the monitor's mode back.**
|
||||
|
||||
It does **not** mean every Wayland case works. Most importantly: **Voidrunner itself cannot run as a native Wayland
|
||||
program** (its GLFW is built without the Wayland backend: `X11: The DISPLAY environment variable is missing`, then
|
||||
it crashes), so the Voidrunner runs are **XWayland** runs. The native Wayland capture path (portal + PipeWire) was
|
||||
run with a stand-in test window (`engine/devtools/wayland_standin.py`), not with a real game.
|
||||
|
||||
## How it works now
|
||||
|
||||
| Game's window | Capture | Picture on top | Clip key |
|
||||
|---|---|---|---|
|
||||
| XWayland (Proton, Wine, most older native games, Voidrunner) | as on X11: Composite + `ffmpeg x11grab` through XWayland's `DISPLAY`; no dialog | an override-redirect window through XWayland: KWin keeps it above everything (a fullscreen game too), it never gets the keyboard, the pointer goes through | GlobalShortcuts portal; without it, an X11 key grab through XWayland (fires while an XWayland window has the keyboard) |
|
||||
| Native Wayland (KDE) | `xdg-desktop-portal` ScreenCast (one window, pointer hidden, `persist_mode` 2) to a PipeWire stream, read by `gst-launch-1.0 pipewiresrc` piping raw BGR (CPU copy) | the same XWayland window, placed from KWin's window list (a one-shot KWin script reports pid, title, place and focus over D-Bus) | GlobalShortcuts portal |
|
||||
|
||||
The engine picks between the two by looking for the game (`pid:N`, title, `class:`) every half second among
|
||||
XWayland windows and among KWin's native windows. The share dialog shows once; the restore token is kept in
|
||||
`~/.config/summit/screencast-token` (mode 600).
|
||||
|
||||
## Verified (each was run on the owner's desktop and its output or image looked at)
|
||||
|
||||
1. **XWayland windows can be read with x11grab** on KWin Wayland + NVIDIA (the engine's old docstring said they
|
||||
could not): a 30-frame grab of Voidrunner's 1280x720 window decoded with the right picture.
|
||||
2. **Overlay through XWayland**: GLFW picked its Wayland backend by default (so the first try was not the X11
|
||||
path); the engine now asks GLFW for X11 when the overlay is needed on a Wayland session. The override-redirect
|
||||
window covered HDMI-A-1 over the game, `_NET_ACTIVE_WINDOW` stayed on the game.
|
||||
3. **Found and fixed (not Wayland-only): `--monitor` with the fullscreen overlay never matched** (GLFW monitor
|
||||
pointers compared by identity), so the picture covered the whole X screen, all three monitors (seen once, about
|
||||
10 s). Now matched by name: it covers HDMI-A-1 only. The single-monitor X11 test VM never showed this.
|
||||
4. **Keys reach the game under the picture**. Keys were injected with `xdotool` (XTest, through KWin's input
|
||||
emulation for XWayland: **KDE asked the owner to allow it once, he did**) and only while the game was the active
|
||||
window (checked before every key; it caught the owner clicking elsewhere several times and sent nothing). The game
|
||||
went from its splash to New Run and the artifact choice and moved the selection with `a`/`d`. For the native
|
||||
stand-in, its own log shows `key a`, `key b`, `key c` with the picture on top, and no focus change.
|
||||
5. **`summit run custom:voidrunner --enhance`** (profile: RIFE, FSR, fullscreen, HDMI-A-1, 1920x1080 @ 60): game
|
||||
and engine started, engine picture over HDMI-A-1 (`60 fps game 60 delay 20-28 ms` on the stats line), the
|
||||
watermark bottom-left, Ctrl+Alt+R saved `Voidrunner ….mp4` (13.4 s, the buffer was 13 s old), killing the game
|
||||
ended `summit run` in 250-700 ms with no process left.
|
||||
6. **From the launcher**: `summit-gui` on Voidrunner's page, Enhance on, Play (Return, sent only while KWin said the
|
||||
launcher was the active window): it ran `summit run custom:voidrunner --enhance --title=Voidrunner -- …`; then as
|
||||
in 5; clip 14.75 s, H.264 1280x720, 884 frames, `ffmpeg -f null` decodes all of it (one "non monotonically
|
||||
increasing dts" warning, as on X11). **Found and fixed**: the launcher refused Enhance on any non-X11 session.
|
||||
7. **Display profile on KDE Wayland**, for real: HDMI-A-1 went from mode id 49 (1920x1080 @ 119.98) to 51 (@ 60)
|
||||
during the game and back to **49** after, four times. **Found and fixed**: the old plan asked by name
|
||||
(`1920x1080@120`), which this monitor has twice (ids 48 @ 119.88 and 49 @ 119.98), so the restore could pick the
|
||||
wrong one; it also ran `output.X.enable` on an output that was on, as a separate call. Now: one `kscreen-doctor`
|
||||
call (as its `--help` says), the mode by **id** from `kscreen-doctor -j`, no `enable` for an output that is on.
|
||||
Syntax checked against the installed kscreen-doctor 6.8.2 (`--help`, `-j`).
|
||||
8. **Found and fixed**: `summit profile set --width 0 --height 0` made `summit run` call
|
||||
`kscreen-doctor output.HDMI-A-1.mode.0x0@60`. kscreen-doctor refused it and the monitors stayed as they were
|
||||
(checked: DP-2 1, DP-1 17, HDMI-A-1 49, the same as at the start); zeros now mean "not set".
|
||||
9. **GlobalShortcuts portal**: Plasma refuses a host program without an app id (`An app id is required`). Summit now
|
||||
calls `org.freedesktop.host.portal.Registry.Register("summit")` first. That needs `summit.desktop` in an
|
||||
applications folder whose `Exec` program exists (GLib skips it otherwise: the first try failed until
|
||||
`summit-gui` was built). With the file there (the owner allowed `~/.local/share/applications/summit.desktop`
|
||||
for the test; `install.sh` installs one), the shortcut was bound in 1.7 s with no dialog, and Ctrl+Alt+R saved
|
||||
clips. The game also sees the Ctrl and Alt presses (KWin swallows only the R).
|
||||
10. **XWayland key grab fallback**: before the app id fix, the portal failed and the engine fell back to an X11
|
||||
grab through XWayland; Ctrl+Alt+R with the XWayland game focused saved a 15.4 s clip.
|
||||
11. **Native Wayland window through the portal** (stand-in window): the **share dialog appeared and the owner
|
||||
picked the window within 9 s**. 299 new frames in 6 s (49.7 a second) at 1280x720. The next run, **with a new
|
||||
window of the same program**, was restored from the token with **no dialog** (`shared after 0.0 s`), and so
|
||||
were the three runs after it. Picture over the window (windowed: lined up with the window's frame; KWin's window
|
||||
stream includes the title bar) and over its monitor (fullscreen), stats and watermark drawn, clip saved with the
|
||||
portal key (4.3 s: RIFE's warm-up took most of the short run), stream end noticed 603 ms after the window
|
||||
closed.
|
||||
12. **Fullscreen games under the picture**: Voidrunner in its own fullscreen mode (XWayland) and the stand-in
|
||||
fullscreen on HDMI-A-1 (native): the picture stayed on top in both. With the native one fullscreen and nothing
|
||||
else touched, KWin's active window stayed the stand-in for 16 s while the engine drew (polled every 0.5 s).
|
||||
13. **A failing engine no longer kills the game**: `summit run … --enhance --window class:nothing --wait 3`: the
|
||||
engine said `no window matches 'class:nothing' after 3 s`, the game kept running, `summit run` printed
|
||||
`Enhance could not run (exit status: 1; …): the game went on without it`, and ended when the game ended.
|
||||
14. **`summit doctor`** on the desktop: session, XWayland, ScreenCast (window sharing), save key (portal + desktop
|
||||
file), PipeWire + `pipewiresrc`, KWin, `kscreen-doctor`, GPU and driver, torch with CUDA: all ok. With the
|
||||
desktop file absent it warns that Ctrl+Alt+R only works while an XWayland game has the keyboard.
|
||||
15. **`install.sh --dry-run`** on the desktop: detects `wayland` and adds `gstreamer gst-plugins-base
|
||||
gst-plugin-pipewire` to the pacman line (all three were already installed there). Not run for real.
|
||||
16. **Gamescope 3.17.0** (evaluated, not wired in): `gamescope -w 1280 -h 720 -W 1920 -H 1080 -F fsr --
|
||||
./top_down_shooter` runs nested on Plasma Wayland on the 5080 (Vulkan, its Wayland backend) and showed
|
||||
Voidrunner upscaled with its own FSR. It is an upscaler and a nested compositor, no frame generation; its window
|
||||
is a native Wayland window, so Summit's engine could only read it through the portal. Could be offered later as
|
||||
a profile option ("upscale with gamescope"); not a dependency.
|
||||
17. Tests: `cargo test --workspace` (1 + 104 + 19) and the engine's pytest on the desktop's venv (38 passed, 1
|
||||
skipped) before the commits.
|
||||
|
||||
## Measured
|
||||
|
||||
| | XWayland game (Voidrunner 1280x720) | Native stand-in (PipeWire) |
|
||||
|---|---|---|
|
||||
| Frames read | ~60 grabs a second, 0-1 % unchanged | ~50 new frames a second at 1280x720 alone; 744 in about 12 s inside the engine |
|
||||
| Engine output | 59.2-59.7 frames a second (60 Hz target) | 59.5 |
|
||||
| FSR draw on the GPU | 0.06 ms at 1920x1080 | 0.06 ms at 1860x1080 |
|
||||
| Frame reaches the engine -> on screen | p50 21-38 ms, p95 22-55 ms (five runs) | p50 21.8-22.6 ms, p95 24-25 ms |
|
||||
| CPU | ffmpeg x11grab (not measured here) | `gst-launch-1.0` 18-19 % of one core at 1920x1080; the engine process 69 % |
|
||||
|
||||
"Reaches the engine -> on screen" is the engine's own measure. The time from the game drawing a frame to the engine
|
||||
receiving it (x11grab polling, KWin's screencast) was **not** measured. The CPU copy was kept: DMA-BUF import was
|
||||
not tried.
|
||||
|
||||
## Not verified, or known limits
|
||||
|
||||
- **A real native Wayland game** (only the stand-in). Voidrunner can't run on Wayland natively.
|
||||
- **Pressing keys on a real keyboard**: all keys were injected (XTest through KWin, allowed by the owner).
|
||||
- **Other desktops**: GNOME, sway, Hyprland were not available. Without KWin the engine can't tell which native
|
||||
window is the game: the dialog lets the user pick it and the picture goes over the `--monitor` screen (written,
|
||||
untested). GNOME has no monitor tool (`summit doctor` says so).
|
||||
- **Fractional scaling**: all three monitors were at scale 1. With scaling, XWayland's coordinates and KWin's
|
||||
differ and the picture may not line up. Untested.
|
||||
- **The restore token across a reboot or for a different game** was not tried; the dialog will likely show again
|
||||
for a different program.
|
||||
- **One unexplained focus change**: in one run the native stand-in logged `focus out` about 5 s after it started,
|
||||
right after an XWayland run on the same monitor had been stopped; a clean repeat (item 12) kept the focus. Not
|
||||
understood.
|
||||
- **The share dialog's window choice is the user's**: if they pick another window, the engine enhances that one.
|
||||
- **Output at 90/120/240 Hz, VRR, HDR**: the engine ran at 60 Hz; DP-1 runs at 240 Hz and was not used for output
|
||||
tests.
|
||||
- **`install.sh` for real** on the desktop (only `--dry-run`). The global key through the portal needs the
|
||||
installed `summit.desktop`; a Summit run from a checkout without it gets the XWayland grab only.
|
||||
- The launcher's other keys on Wayland (only Return on Play was pressed); which backend the launcher window used
|
||||
(native Wayland or XWayland) was not checked.
|
||||
- DMA-BUF / zero copy (see above). Clip audio. Steam or Proton games on Wayland.
|
||||
|
||||
## On the owner's machine during and after the run
|
||||
|
||||
- Left: `~/summit-test` (8.9 GB: source, `target/`, the engine venv with torch, uv's cache and Python, the game
|
||||
copy, logs, the two clips). Delete it with `rm -rf ~/summit-test` when done.
|
||||
- Created and **removed again**: `~/.local/share/applications/summit.desktop` (allowed by the owner for the portal
|
||||
test), the `[summit]` component in `~/.config/kglobalshortcutsrc` that the portal created (removed through
|
||||
kglobalaccel's `cleanUp`), the ScreenCast permission entry for app `summit` (deleted from the permission store by
|
||||
its token id), `~/.local/share/summit` (made by one `summit add` before I pointed `XDG_DATA_HOME` away; moved
|
||||
into `~/summit-test`), the full-desktop screenshots.
|
||||
- **Still there, the owner's choice**: KDE's permission for legacy X11 programs to send input (the dialog for
|
||||
`xdotool`); it can be revoked in System Settings. I did not remove anything from the `remote-desktop` permission
|
||||
table because I could not tell which entry was that one.
|
||||
- **Mistakes**: my first test scripts started the game through a subshell and killed only the subshell, so five
|
||||
Voidrunner windows stayed open on HDMI-A-1 for a few minutes. All five were killed by PID after checking that
|
||||
each one's executable was `~/summit-test/game/top_down_shooter`. The overlay covered all three monitors once for
|
||||
about 10 s (the `--monitor` bug, item 3) and DP-1, the owner's main screen, for about 12 s in one native test.
|
||||
HDMI-A-1's refresh rate was switched to 60 Hz and back four times.
|
||||
- Nothing was installed system-wide, no sudo, nothing under `~/Games`, `~/Projects` or Steam was written; the
|
||||
launcher read the Steam library while it ran.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 736 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 172 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 229 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Reference in new issue
Block a user