Merge ap/release-candidate
No files matched your search
@@ -2,48 +2,63 @@
|
||||
|
||||
<p align="center">
|
||||
<b>Every game. Every launcher. One place. On Linux.</b><br>
|
||||
Scan your drives, launch anything, pin each game to the right monitor, and add AI upscaling and frame generation to all of it.
|
||||
Scan your drives, launch anything, pin each game to the right monitor, and add AI upscaling, frame generation and instant-replay clips to all of it.
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://git.molberg.cloud/alex/summit"><b>Source on Gitea</b></a> ·
|
||||
<a href="https://git.molberg.cloud/alex"><b>More projects by Alex</b></a>
|
||||
<a href="https://git.molberg.cloud/alex/summit"><b>Source: git.molberg.cloud/alex/summit</b></a> ·
|
||||
<a href="https://git.molberg.cloud/alex"><b>More projects by Alex: git.molberg.cloud/alex</b></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-home.png" width="100%" alt="Summit Home in the Big Picture layout: the focused game's wide art fills the top of the window behind its logo, hours played and a large Play button; below it a shelf of cover art with a glowing focus ring on the first cover.">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/rc/enhanced-gameplay.png" width="100%" alt="Voidrunner running through Summit's engine, full screen: a stats line at the top left (fps, game fps, delay) and the Summit watermark at the bottom left.">
|
||||
</p>
|
||||
<p align="center"><sub>Voidrunner started from the launcher with <b>Enhance</b> on: the engine's picture (RIFE + FSR, 720p window to a 1080p screen) sits over the game. Top left: output fps, the game's own fps and the delay. Bottom left: the watermark <code>summit - git.molberg.cloud/alex/summit</code>.</sub></p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-library.png" width="49%" alt="Summit Library as a cover grid with filter chips, a sort chip and a search box">
|
||||
<img src="docs/media/summit-list.png" width="49%" alt="Summit Library in the List layout: dense rows with a small cover, title, hours played, last played, source and installed state">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-detail.png" width="49%" alt="A game's page: cover, Play, Pin, stats tiles, the launch profile and why Summit lists it. Change artwork and Settings carry a Soon badge.">
|
||||
<img src="docs/media/summit-settings.png" width="49%" alt="Summit settings: layout, six theme swatches, interface size, animation speed and style, clip lengths">
|
||||
<img src="docs/media/summit-detail.png" width="49%" alt="A game's page: cover, Play, Enhance, Pin, Profile, stats tiles, the launch profile and why Summit lists it">
|
||||
<img src="docs/media/rc/detail-enhance.png" width="49%" alt="The same page with Enhance switched on and the toast Enhance on for Voidrunner">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-unfiltered.png" width="49%" alt="Summit Unfiltered: a list grouped by source, each entry with the reasons it was detected">
|
||||
<img src="docs/media/summit-deck.png" width="49%" alt="Summit Home at 1280x800, the Steam Deck's resolution, with focus on the Pinned shelf">
|
||||
<img src="docs/media/summit-settings.png" width="49%" alt="Summit settings: layout, six theme swatches, interface size, animation speed and style, clip lengths">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-steam.png" width="32%" alt="Steam blue theme">
|
||||
<img src="docs/media/summit-daylight.png" width="32%" alt="Daylight theme, Grid layout">
|
||||
<img src="docs/media/summit-violet.png" width="32%" alt="Violet theme">
|
||||
<img src="docs/media/summit-steam.png" width="32%" alt="Steam blue theme, Home">
|
||||
<img src="docs/media/summit-daylight.png" width="32%" alt="Daylight theme, Library grid">
|
||||
<img src="docs/media/summit-violet.png" width="32%" alt="Violet theme, Home">
|
||||
</p>
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-contrast.png" width="32%" alt="High contrast theme, List layout">
|
||||
<img src="docs/media/summit-contrast.png" width="32%" alt="High contrast theme, Library list">
|
||||
<img src="docs/media/summit-oled.png" width="32%" alt="OLED black theme, a game's page">
|
||||
<img src="docs/media/summit-home-focus.png" width="32%" alt="Midnight theme with focus moved along the shelf: the backdrop follows the focused game">
|
||||
</p>
|
||||
|
||||
<p align="center"><sub><b>These are headless renders, not window captures.</b> They are the real UI drawn by Slint's software renderer with <code>docs/demo/screenshots.sh</code>: still frames, so they show no animation. <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. <b>Voidrunner</b> is real (the author's own game), added by hand with its own artwork. Nothing was running in a game; the in-game overlay does not exist yet.</sub></p>
|
||||
<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.** What works today is the command-line core (library scanning with detection reasons, playtime tracking, Home pins, custom artwork, per-game display profiles applied at launch), the launcher window on top of it, and live frame generation + upscaling on a launched game's window (X11 only). Wayland capture, a full in-game overlay and many launch paths (Heroic, real Steam games) are **not built or not tested yet**. Nothing below is marked as working unless it is.
|
||||
> **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.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
curl -fsSL https://git.molberg.cloud/alex/summit/raw/branch/main/install.sh | sh
|
||||
```
|
||||
|
||||
The installer detects your distro (Arch/CachyOS/Manjaro, Debian/Ubuntu/neon/Mint, Fedora, openSUSE), your GPU vendor and your session type, prints exactly what it is about to do, and asks before any `sudo` step (`--yes` skips that, `--dry-run` only prints, `--uninstall` removes what it installed). It builds Summit from source with `cargo` (no release packages are published yet) and sets up the engine's Python environment with `uv` (Python 3.12; CUDA 12.8 torch if it finds an NVIDIA GPU). Then run `summit-gui`.
|
||||
|
||||
What was really run: see [Status](#status) (a real install into a scratch prefix on one Ubuntu machine; dry-runs for the other distros).
|
||||
|
||||
## Why
|
||||
|
||||
@@ -51,63 +66,61 @@
|
||||
|
||||
## Status
|
||||
|
||||
| Feature | State |
|
||||
|---|---|
|
||||
| Scan Steam libraries (all library folders, installed or not) | Working |
|
||||
| Steam playtime, "most played" | Working |
|
||||
| Heroic (Epic, GOG) and Lutris detection | Working, only checked against sample files |
|
||||
| Heuristic game detection with a reason for every hit | Working |
|
||||
| Hours played: Steam's own playtime for Steam games, Summit-tracked sessions for everything else (never added together) | Working |
|
||||
| Windows `.exe` files outside a Wine prefix listed as Software in Unfiltered, with the reason | Working |
|
||||
| Pin to Home and custom artwork per entry | Working. Pin and unpin from the CLI or the launcher (both write `state.json`). Artwork is CLI only (`summit art`); the launcher's "Change artwork" button is marked Soon. |
|
||||
| Display profile applied at launch: monitor, resolution, refresh rate | **Working on X11** (`xrandr`): checked on the KDE neon X11 test VM: `summit run` switched the output from its custom `1920x1080_120.00` mode to 1280x800 @ 74.99 Hz, the game came up at 1280x800, and the old mode was put back when the game exited. The monitor list comes from the same tool (`summit doctor` prints it). KDE Wayland (`kscreen-doctor`) and wlroots (`wlr-randr`): command plans and output parsing are unit tested, **not run on a real Wayland desktop**. GNOME Wayland has no stable tool, so Summit says so and skips it. A detached launch (Steam) without Enhance cannot know when the game ends, so the mode is not put back then. |
|
||||
| Per-game profile editor in the launcher (Profile on a game's page): monitor and its real modes and refresh rates, fullscreen, focus, upscaler, frame generation, target rate | **Working** (used on the test VM: the editor listed `Virtual-1`'s 19 xrandr modes; every change is written through `summit-core::profile`). Upscaler, frame generation, target rate and fullscreen are used by Enhance (fullscreen means the engine's picture covers the monitor; the game's own window mode is not changed). **Focus is stored only**: raising the game window is not built. 90/120 Hz and RTX VSR are wired, not tested. |
|
||||
| Launcher window (Slint): Home, Library, Unfiltered, a page per game, Settings | Working. Run `summit-gui`. Home has a hero for the focused game (its wide art as backdrop, logo, hours, Play) over shelves: Jump back in, Pinned, Most played. Library is a cover grid that fits the window, or a dense list, with All / Installed / Not installed, three sort orders and search. Checked in headless renders at 1600x900, 1280x800 and 900x600, in a real window under Xvfb, and on the KDE neon X11 desktop of the test VM (software OpenGL there). **Not checked on a GPU-rendered desktop or a TV yet.** |
|
||||
| Layouts (Big picture, Grid, List) and six themes (Midnight, Steam blue, Daylight, Violet, High contrast, OLED black) | Working. Saved to `~/.config/summit/ui.toml` with interface size and the animation settings, and loaded at start. |
|
||||
| Animations with a speed slider (0 turns them off) and three styles | Working in a real window under Xvfb (frames captured mid-transition). How smooth they are on real hardware has not been judged. |
|
||||
| Keyboard navigation: arrows, Enter, Esc, Tab between sections, `/` to search, P to pin, F11 fullscreen | Working (driven by synthetic key events in the headless renders and in the Xvfb window). |
|
||||
| Game controller navigation (d-pad or left stick, A, B, X, LB/RB) | Written, reads `/dev/input/js*`. Decoding and mapping are unit tested. **Not tested with a real controller.** |
|
||||
| Play from the launcher, with an Enhance toggle | Everything goes through `summit run`, so the display profile is applied first. Games added by hand: `summit run <id> [--enhance] -- <path>`. **Working**: Voidrunner was started from the launcher on the test VM, once plain and once with Enhance on (see [Play from the launcher](#play-from-the-launcher)). Steam: `summit run steam:<id> --detached [--enhance --window class:steam_app_<id>] -- steam steam://rungameid/<id>` (`steam://install/<id>` when not installed); **not tested**, there is no Steam on the test machines, and the `steam_app_<id>` window class is what Proton games get, not every native game. Lutris: `summit run <id> --detached -- lutris lutris:rungame/<slug>`, untested, no Enhance. Heroic and folders found on disk cannot be started yet and the button says so. Enhance needs an X11 session; the button is disabled with the reason otherwise. The output of the last run goes to `~/.cache/summit/last-run.log`. |
|
||||
| Covers for 600+ games | Lists only create the rows on screen, and covers are decoded to thumbnails on a worker thread when a card first appears. Rendered headless with a 662-game library. Not profiled on real hardware. |
|
||||
| Instant replay with a PS5-style length picker: keep 15 s to 10 min, save 15 s, 30 s, 1 m, 3 m, 5 m or 10 m with Ctrl+1..6 (R saves the default length) | **Engine working** (tested with a synthetic stream on the 3090: a 15 s save and a 600 s request capped at the 40 s actually buffered). **Working on a live game on X11**: the launcher's settings page wrote 3 min / 3 min to `ui.toml`, Play with Enhance passed `--replay 180 --clip-length 180` to the engine, and Ctrl+Alt+R pressed while Voidrunner had the keyboard saved a 30.3 s clip (all that was buffered by then; checked with ffprobe). **Global save key**: X11 through `XGrabKey` (ctypes libX11, no extra package; tested on the KDE desktop and under Xvfb, a key another program holds is reported as taken; it does not fire while the KDE lock screen is up). Wayland through xdg-desktop-portal GlobalShortcuts with the optional `jeepney` package: written, **not tested** (no such desktop available). Without either the engine and the settings page say there is no global key. |
|
||||
| Live enhance: `summit run <id> --enhance` starts the game and runs frame generation + upscaling on its window, no recording step | **Working on X11** (tested on KDE neon X11 with Voidrunner, RTX 3090): the game is launched, its window is found by process id, the enhanced picture sits on top of it (the game keeps keyboard and mouse), and both stop when either exits (also when the game was started by a launch script: what the script started is stopped too, checked on the VM). **X11 only**: on Wayland it refuses to start (portal/PipeWire capture is not built). The engine's own keys (stats, menu) still need its window; only the clip keys are global. See [Live enhance](#live-enhance-play-a-game-with-frame-generation-on-top). |
|
||||
| In-game overlay with a watermark showing the project URL | **Working** in the engine's video window: a small `summit - git.molberg.cloud/alex/summit` line in a bottom corner, next to the existing stats. Setting `watermark`, on by default; `--no-watermark` turns it off. Not drawn into saved clips or files. |
|
||||
| One-click "Add to Steam" with SteamGridDB artwork | Planned |
|
||||
| "My PS5" and "Capture Card" entries (Remote Play, capture cards, Moonlight, Sunshine) | Planned. Reuses the SmoovPlay pipeline. |
|
||||
| AI frame generation (RIFE) on file sources: `summit enhance` | **Working.** Measured on an RTX 3090 (KDE neon): a 30 fps 1080p clip became 60 fps, with 14 ms per generated frame (PyTorch, CUDA graphs). |
|
||||
| FSR upscaling in the engine | Selectable (`--scaler fsr`), ran in the test above; the image quality has not been inspected. |
|
||||
| RTX Video Super Resolution (`rtx-vsr`) | Wired to the engine, **not tested** here. |
|
||||
| Live output window (`--display`, 90/120 Hz, fullscreen on a chosen monitor) | 60 Hz windowed and fullscreen ran on the test VM (software OpenGL, so slow there). 90/120 Hz and picking a monitor by name are wired, **not tested** (one virtual display only). |
|
||||
| PS5 Remote Play (needs chiaki-ng with SmoovPlay's frame tap) and capture cards | Wired as `ps5` / `capture:<name>` sources, **not tested** without the hardware. |
|
||||
| lsfg-vk frame generation for any game | Planned |
|
||||
| DLSS | Planned. Depends on what each game and driver really supports. |
|
||||
| One-line installer (`install.sh`) | **Only dry-run tested**: `--dry-run` picks the right commands on Debian/Ubuntu/neon/Mint, Arch/CachyOS/Manjaro, Fedora and openSUSE (this machine and containers). It has **not been run for real end to end** on any distro. Until the audit it would also have failed for a non-root user at the engine venv step (fixed, that fix is only dry-run tested too). No release packages are published yet, so it always builds from source with cargo. |
|
||||
| `.deb` (`packaging/deb/build.sh`) | Builds on this machine (Debian trixie host), and the contents were checked with `dpkg-deb`. **Not installed anywhere yet**, no postinst/prerm. |
|
||||
| AUR (`packaging/arch/PKGBUILD`) | Untested. Needs a pushed git tag to build against; not run through `makepkg` here. |
|
||||
| AppImage (`packaging/appimage/build.sh`) | Untested. Needs `linuxdeploy` and `appimagetool`, neither available in this environment. |
|
||||
| Flatpak | Planned |
|
||||
- **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).
|
||||
- **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.
|
||||
|
||||
| Feature | Status | What was actually done |
|
||||
|---|---|---|
|
||||
| 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. |
|
||||
| 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. |
|
||||
| `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. |
|
||||
| Pin to Home, custom artwork | **Working** | Pins from the CLI and the launcher. Artwork through `summit art`; the launcher's "Change artwork" button is marked Soon. |
|
||||
| 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. |
|
||||
| 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. |
|
||||
| Steam, Lutris games started from the launcher | **Experimental** | Command lines are built and unit tested; no Steam or Lutris on the test machines. Heroic and folders found on disk cannot be started yet and the button says so. |
|
||||
| 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. |
|
||||
| `.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/SmoovPlay/` as plain MP4 files.
|
||||
|
||||

|
||||
|
||||
Checked on the test machine: with a 60 s buffer and a 30 s clip, one key press wrote a 30.1 s, 1280x720, H.264 file of about 16 MB (about 35 frames a second on average; the container's time base is 240 fps, and ffmpeg reports out-of-order timestamps while decoding but decodes the whole file). Not checked: playback in a desktop player, clips with sound, clips from a 4K source.
|
||||
|
||||
## Enhance: before and after
|
||||
|
||||

|
||||
|
||||
The same still screen (the game's *You died* screen, so both captures show the same picture): left, the game window as the screen would show it scaled up; right, the engine's output. On this pixel-art game the difference in a still is small. What Enhance adds is frame generation in motion, which a still cannot show, and on the test machine the display was too slow to show a gain in fps (see the table).
|
||||
|
||||
## Play from the launcher
|
||||
|
||||
A game's page has Play, an **Enhance** toggle and **Profile**. With Enhance on, Play runs `summit run <id> --enhance`: the display profile is applied, the game starts, and the engine runs the profile's frame generation and upscaler on its window until either one exits. Clip lengths come from Settings, and Ctrl+Alt+R saves a clip from any window on X11. These captures are from the KDE neon X11 test VM (software OpenGL, RTX 3090 for the engine):
|
||||
A game's page has Play, an **Enhance** toggle and **Profile**. With Enhance on, Play runs `summit run <id> --enhance`: the display profile is applied, the game starts, and the engine runs the profile's frame generation and upscaler on its window until either one exits. Enhance is a field of the game's profile (`enhance = true` in `~/.config/summit/profiles/<id>.toml`). Earlier captures from the same machine:
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
|  |  |
|
||||
| Enhance toggle on a game's page | Profile editor: monitor, resolution and refresh from xrandr |
|
||||
|  |  |
|
||||
| After Play: RIFE + FSR on the game's 720p window, full screen | Ctrl+Alt+R pressed while the game had the keyboard |
|
||||
|
||||

|
||||
|
||||
|
||||
```sh
|
||||
curl -fsSL https://git.molberg.cloud/alex/summit/raw/branch/main/install.sh | sh
|
||||
```
|
||||
|
||||
Detects your distro (Arch/CachyOS/Manjaro, Debian/Ubuntu/neon/Mint, Fedora, openSUSE), your GPU vendor and your session type, prints exactly what it's about to do, and asks before any `sudo` step (`--yes` skips that, `--dry-run` only prints). Builds Summit from source with `cargo` (no release packages are published yet) and sets up the engine's Python virtualenv with `uv` (Python 3.12, CUDA 12.8 torch only if it finds an NVIDIA GPU). `--uninstall` removes what it installed.
|
||||
|
||||
Prebuilt packages: a `.deb` can be built locally with `packaging/deb/build.sh`; `packaging/arch/PKGBUILD` and `packaging/appimage/build.sh` exist but are untested (see the table above).
|
||||
|  |  |
|
||||
| Profile editor: monitor, resolution and refresh from xrandr | After Play: RIFE + FSR on the game's 720p window, full screen |
|
||||
|
||||
## Try the CLI
|
||||
|
||||
@@ -137,7 +150,7 @@ summit enhance capture:0 --profile my-console # capture card, live window (unt
|
||||
summit enhance window:Voidrunner # a running game's window, live (X11)
|
||||
```
|
||||
|
||||
The engine needs an NVIDIA GPU and its own Python environment (`engine/`, torch with CUDA). `install.sh` sets that up with `uv`; that step has only been dry-run tested.
|
||||
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).
|
||||
|
||||
### Live enhance: play a game with frame generation on top
|
||||
|
||||
@@ -169,10 +182,6 @@ What was measured, and what was not (test VM: RTX 3090 shared with another job,
|
||||
|
||||
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. Killing `summit` itself with a signal does not stop the two it started, and does not put the monitor's mode back. `SUMMIT_ENGINE_ARGS` passes extra flags to the engine, e.g. `SUMMIT_ENGINE_ARGS=--no-graph` on a GPU short of memory.
|
||||
|
||||
## Clips
|
||||
|
||||
The engine keeps a rolling buffer of what you played (hardware encoded, so it costs little), like the PS5's Share button. Pick how far back to keep with `--replay` (15, 30, 60, 180, 300 or 600 seconds) and what a save writes with `--clip-length`. In the video window, **R** saves the default length and **Ctrl+1 to Ctrl+6** save 15 s, 30 s, 1 m, 3 m, 5 m or 10 m. A clip is never longer than the buffer holds.
|
||||
|
||||
## The launcher
|
||||
|
||||
```sh
|
||||
@@ -201,10 +210,16 @@ The window uses Slint's OpenGL renderer (FemtoVG) and falls back to its software
|
||||
|
||||
Headless renders, for screenshots and for checking the UI without a display: `SUMMIT_SHOT=<dir>` writes a PNG and exits. `SUMMIT_VIEW`, `SUMMIT_LAYOUT`, `SUMMIT_THEME`, `SUMMIT_DETAIL`, `SUMMIT_KEYS`, `SUMMIT_SIZE` and `SUMMIT_SCALE` choose what is drawn; they are described at the top of `crates/summit-gui/src/shot.rs`.
|
||||
|
||||
## Also on
|
||||
## Credits
|
||||
|
||||
- Gitea: <https://git.molberg.cloud/alex/summit>
|
||||
- GitHub: mirror planned under @amolberg
|
||||
- **SmoovPlay** (<https://github.com/smoovplay/smoovplay>, MIT): Summit's engine (RIFE frame interpolation, FSR and RTX VSR upscaling, the cadence logic, instant replay, the PS5 / capture-card plumbing) is derived from SmoovPlay's `framegen` pipeline. Thank you to the SmoovPlay authors. See [NOTICE](NOTICE). RIFE is by Megvii / hzwer and keeps its own licence in `engine/framegen/rife/`.
|
||||
- The launcher, the Rust command-line core and the packaging are Summit's own.
|
||||
|
||||
## Links
|
||||
|
||||
- Source (Gitea): <https://git.molberg.cloud/alex/summit>
|
||||
- More projects by Alex: <https://git.molberg.cloud/alex>
|
||||
- Release-candidate report (what was verified, what was not): [docs/RC_REPORT.md](docs/RC_REPORT.md)
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
E2E: PASS
|
||||
|
||||
# Release-candidate report
|
||||
|
||||
Run on 2026-11-24 on the GPU test VM (KDE neon, X11 `:0`, 1920x1080, software OpenGL, RTX 3090 shared with another job) with the binaries built from commit `8a1b622` (release build on the build machine, copied over). The two fixes below were made during the run; the engine on the VM already had the Python fix when the second clip was taken.
|
||||
|
||||
PASS means: the whole path the owner will walk (start the launcher, navigate by keyboard, Play Voidrunner with Enhance, see the overlay and watermark, save a clip) ran for real and worked. It does **not** mean everything in the README is tested: see "Failed, fixed, untested" at the end.
|
||||
|
||||
## Verified (each one was run, and the output or image was looked at)
|
||||
|
||||
1. **Release build**: `cargo build --release -p summit -p summit-gui` finished (1 m 02 s). `cargo test --workspace`: 1 + 86 + 17 tests pass (also before each commit). Engine `pytest` on the VM (its venv): 25 passed, 2 skipped, including the new test.
|
||||
2. **`install.sh --dry-run`** on the build machine (Ubuntu 24.04): picked the debian path, printed the build/install/venv steps, changed nothing. Output saved during the run.
|
||||
3. **`install.sh` for real into a scratch prefix** (`SUMMIT_PREFIX=/tmp/rc-prefix`, `--yes`, run as root on the build machine, Ubuntu 24.04, not the VM): installed `bin/summit`, `bin/summit-gui` and `share/summit/engine`, created the venv. Run twice (the second time after the installer fix below): the second install's `import torch` printed `2.11.0+cu128 12.8`, `glfw`, `cv2`, `av` and `OpenGL` import, and its `summit` binary is byte-identical (sha1) to the one in `target/release`. Caveat: the checkout was supplied with `SUMMIT_SRC_DIR` (a local clone of this commit with `target` linked to the worktree's build cache), not fetched from Gitea, so the clone + cargo build path was not exercised from the network.
|
||||
4. **Deployment on the VM**: the installed `bin/` and `share/summit/engine` were copied to `/home/user/rc` (the VM has no cargo; the engine's `.venv` and `models` are symlinks to `/home/user/engine`). Not the installer running on the VM.
|
||||
5. **GUI on the desktop**: `summit-gui --fullscreen` ran on `:0` with a demo library (34 games; Voidrunner is the real entry).
|
||||
6. **Keyboard navigation** with synthetic X key events (`xkey.py`): Tab walked Home, Library, Unfiltered, Settings; arrows moved focus (also changed a settings value by accident, so those keys really reach the controls); Enter opened Voidrunner's page, pressed Enhance and pressed Play; Esc went back/Home.
|
||||
7. **Play with Enhance on from the launcher**: process list showed `summit run custom:voidrunner --enhance -- /home/user/Games/Voidrunner/top_down_shooter`, the game, and the engine (`run.py --source window --window=pid:<game> --scaler fsr --display --hz 60 --fullscreen --window-wait 60 --replay 60 --clip-length 30 --no-graph`). The Enhance flag lives in the game's profile file: I first overwrote the profile by hand after toggling and lost it (my mistake, not a bug); the launcher passed `--enhance` once the field was back.
|
||||
8. **Engine overlay and watermark on screen**: the full-screen capture shows the game's menu and gameplay drawn by the engine, the stats line (`34 fps game 56 delay 65 ms` and similar) at the top left and `summit - git.molberg.cloud/alex/summit` at the bottom left (`docs/media/rc/enhanced-gameplay.png`, `enhanced-menu.png`, `overlay-stats-watermark.png`).
|
||||
9. **Played through the game with keys**: menu keys (Return x4, y, 1, 2), movement keys; the game reacted (artifact card chosen, a room entered, the character died and the *You died* screen came up).
|
||||
10. **Clip save**: Ctrl+Alt+R (X11 global key, injected with XTest while the game had the keyboard). Toast: `Saved the last 30 s: ...`. File: `~/Videos/SmoovPlay/SmoovPlay 2026-11-24 09-27-53.mp4`, `ffprobe`: h264, 1280x720, 30.13 s, 16.8 MB, 1051 frames. `ffmpeg -i ... -f null -` decodes the whole file (exit 0). A frame was extracted and looked at.
|
||||
11. **Shutdown**: killing the game by PID stopped `summit run` and the engine within 6 seconds; `xrandr` showed `Virtual-1` still at `1920x1080`; no leftover `top_down_shooter`, `run.py` or `summit` processes. The `settings.cfg` I put in the game's data folder (windowed 720p) was removed afterwards.
|
||||
12. **Screenshots** (all real window captures taken with `import -window`, then viewed; the popups that were on screen, KDE "Memory Shortage Avoided" notifications, are not in them because the Summit window was captured, not the root; the fullscreen engine captures cover the whole screen and showed no popups): home, home focus, library, list, unfiltered, game page, game page with Enhance on, settings, themes (Steam blue, Daylight, Violet, High contrast, OLED black; Midnight is the default), the enhanced game (menu and gameplay), the clip toast, a before/after comparison and an overlay detail. Files: `docs/media/summit-*.png`, `docs/media/rc/*.png`, resized to 1600 px wide where they were full-screen captures.
|
||||
13. **README rewritten** with those images, a Working / Tested / Experimental / Planned table, the one-line install, the clip feature, links and the SmoovPlay credit.
|
||||
|
||||
## Found and fixed
|
||||
|
||||
- **Ctrl+Alt+R ignored the clip length** (engine, High for the clip feature): the global key called `save()` with no length, so a 60 s buffer with a 30 s clip setting wrote 60.4 s (first clip of the run, 33.8 MB). Fix: the engine remembers the configured length (`Recorder.default_clip`, set from the `replay_clip` setting) and the key passes it. New test `test_global_key_saves_the_default_clip_length_not_the_whole_buffer`. Re-run: 30.13 s. Commit `engine: Ctrl+Alt+R saves the configured clip length...`.
|
||||
- **`install.sh` installed the wrong torch on NVIDIA machines**: `requirements.txt` only says `torch>=2.6`, so the first `uv pip install -r` pulled PyPI's default (2.15.0+cu132 here, CUDA 13.2, which the VM's 580 driver cannot run) and the cu128 step that followed saw it satisfied and did nothing. Fix: install the cu128 torch first, then the requirements. Re-run for real: `2.11.0+cu128`. Commit `install.sh: install the CUDA 12.8 torch ...`. Not checked: that this torch actually runs on a GPU (the build machine has no usable NVIDIA driver; `torch.cuda.is_available()` was `False` there).
|
||||
|
||||
## Failed, quirks, untested
|
||||
|
||||
- **Enhanced output is slower than the game on this VM**: 32 to 40 fps out while the game draws 52 to 58, delay 65 to 97 ms. Cause (known from before): software OpenGL needs about 15 ms to draw each 1080p frame, so the display step, not the engine, is the limit. Not measured on a GPU-driven display. I did not try the windowed (non-fullscreen) mode in this run, where earlier measurements gave 56 fps.
|
||||
- **Toast text shows a Windows-style path** (`Videos\SmoovPlay\...`) on Linux. Cosmetic, not fixed (it is SmoovPlay's `_short()` helper).
|
||||
- **The clip's container time base is 240 fps** and ffmpeg prints about 69 "non monotonically increasing dts" warnings while decoding the clip (it still decodes completely; average 34.9 fps). Playback in a desktop player was **not** tried; ffprobe/ffmpeg only. No sound track in the clip (`ffprobe` listed one video stream; whether the game's audio should be there was not checked).
|
||||
- **Before/after**: on this pixel-art game the upscaled still looks nearly the same as the plain scaled window; the comparison image says so. Frame generation can't be shown in a still and the fps did not improve on this VM.
|
||||
- **Untested** in this run: `/`, `P`, `F11` keys; the profile editor and Settings controls (apart from the accidental value changes); a real Steam, Heroic or Lutris launch; a controller; Wayland; 90/120 Hz and `--monitor`; RTX VSR; PS5 and capture cards; `--no-watermark` (earlier check only); display mode switching (the profile in this run used the default mode); `install.sh` on other distros (dry run only), as a non-root user, into `/usr/local`, or on the VM itself; the `.deb`, AUR and AppImage packages; the live Gitea `curl | sh` path (the raw URL answers, but its `install.sh` is whatever is on `main` there, not this commit; nothing was pushed).
|
||||
- Things the run left behind: on the VM `/home/user/rc`, `/home/user/rc-home` (demo HOME with two test clips in `Videos/SmoovPlay`), two extra screenshots (`shot00003.png`, `shot00004.png`) the game saved into its own `data/album/` when I died, and an `album.txt` entry; on the build machine `/tmp/rc-*`. Nothing was pushed.
|
||||
@@ -0,0 +1,12 @@
|
||||
# release-candidate (agent report)
|
||||
|
||||
**What changed**
|
||||
- `engine/run.py`, `engine/framegen/replay.py`, `engine/tests/test_clip_length.py`: Ctrl+Alt+R now saves the configured clip length instead of the whole buffer (bug found in the E2E run), with a test.
|
||||
- `install.sh`: CUDA 12.8 torch is installed before `requirements.txt` (the PyPI default torch was cu132 and made the cu128 step a no-op).
|
||||
- `README.md` rewritten: real window captures, Working/Tested/Experimental/Planned table, one-line install, clips, credits to SmoovPlay, links.
|
||||
- `docs/media/summit-*.png` replaced by real window captures (the old ones were headless renders); new `docs/media/rc/*`.
|
||||
- `docs/RC_REPORT.md`: `E2E: PASS` and the itemized list of what was verified, fixed, and not tested.
|
||||
|
||||
**How it was verified**: see docs/RC_REPORT.md (build, dry-run and real scratch-prefix install, GUI on the VM desktop with keyboard input, Play with Enhance, overlay + watermark, clip + ffprobe, screenshots looked at, `cargo test --workspace`, engine pytest on the VM).
|
||||
|
||||
**Not done**: everything under "Failed, quirks, untested" in the report: Wayland, real Steam/Heroic/Lutris, controller, 90/120 Hz, RTX VSR, other-distro installs, packaging, desktop-player playback of the clip, a GPU-driven display. The Windows-style path in the clip toast is not fixed. Nothing was pushed.
|
||||
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 561 KiB |
|
After Width: | Height: | Size: 605 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 177 KiB |
|
Before Width: | Height: | Size: 614 KiB After Width: | Height: | Size: 843 KiB |
|
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 590 KiB |
|
Before Width: | Height: | Size: 441 KiB After Width: | Height: | Size: 678 KiB |
|
Before Width: | Height: | Size: 647 KiB After Width: | Height: | Size: 861 KiB |
|
Before Width: | Height: | Size: 500 KiB After Width: | Height: | Size: 800 KiB |
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 328 KiB |
|
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 515 KiB |
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 305 KiB |
|
Before Width: | Height: | Size: 440 KiB After Width: | Height: | Size: 693 KiB |
|
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 407 KiB |
|
Before Width: | Height: | Size: 455 KiB After Width: | Height: | Size: 696 KiB |
@@ -376,6 +376,7 @@ class Recorder:
|
||||
encoder: str | None = None, device: str = "auto", notify=None, hotkeys: bool = False,
|
||||
drop_when_behind: bool = True, size: tuple | None = None, mark_dir: Path | None = None) -> None:
|
||||
self.clip, self.layout = clip, layout
|
||||
self.default_clip = 0 # seconds a save writes when it is not told (the global key); 0: all that is buffered
|
||||
self.mark_dir = mark_dir # SAVING_DIR when SmoovPlay runs it: before & after videos say they're being made
|
||||
self.size = (size[0] & ~1, size[1] & ~1) if size else None
|
||||
self._prep_lock = threading.Lock()
|
||||
@@ -443,7 +444,7 @@ class Recorder:
|
||||
print(f"[replay] keeping the last {_dur(self.length)}")
|
||||
if self._hotkeys_wanted:
|
||||
if self.length and self._hotkeys is None:
|
||||
keys = {"ctrl+alt+r": lambda: self.save(), "ctrl+alt+b": lambda: self.save("compare")}
|
||||
keys = {"ctrl+alt+r": lambda: self.save(length=self.default_clip or None), "ctrl+alt+b": lambda: self.save("compare")}
|
||||
if sys.platform.startswith("linux"):
|
||||
from .globalkeys import GlobalKeys # X11 key grab, or the Wayland portal
|
||||
self._hotkeys = GlobalKeys(keys)
|
||||
|
||||
@@ -722,6 +722,8 @@ def main() -> int:
|
||||
replay.set_length(settings.replay)
|
||||
elif key == "replay_save":
|
||||
replay.clip = settings.replay_save
|
||||
elif key == "replay_clip": # what the global Ctrl+Alt+R writes (R and Ctrl+1..6 in the window pass their own)
|
||||
replay.default_clip = settings.replay_clip
|
||||
elif key == "replay_layout":
|
||||
replay.layout = settings.replay_layout
|
||||
elif key == "look_clips": # the look in the SmoovPlay video too, drawn by the window at the stream's size
|
||||
@@ -729,6 +731,7 @@ def main() -> int:
|
||||
|
||||
settings.watch(replay_settings)
|
||||
replay_settings()
|
||||
replay_settings("replay_clip")
|
||||
|
||||
# --results: rewritten every 10 s while playing (the launcher's Stop ends the process without warning) and at
|
||||
# the end. `done` holds finished sessions; `live` the running Pipeline (dropped before a restart frees its GPU
|
||||
|
||||
@@ -19,3 +19,28 @@ def test_clip_never_longer_than_buffer():
|
||||
|
||||
def test_memory_for_ten_minutes_is_reasonable():
|
||||
assert 2500 < replay.memory_mb(600) < 3500
|
||||
|
||||
|
||||
def test_global_key_saves_the_default_clip_length_not_the_whole_buffer(monkeypatch):
|
||||
# Ctrl+Alt+R used to call save() with no length: a 60 s buffer with a 30 s default wrote 60 s.
|
||||
from framegen import globalkeys
|
||||
grabbed = {}
|
||||
|
||||
class FakeKeys:
|
||||
def __init__(self, keys): grabbed.update(keys)
|
||||
def start(self): pass
|
||||
def stop(self): pass
|
||||
|
||||
monkeypatch.setattr(globalkeys, "GlobalKeys", FakeKeys)
|
||||
rec = replay.Recorder(0, hotkeys=True, device="cpu")
|
||||
rec.default_clip = 30
|
||||
calls = []
|
||||
monkeypatch.setattr(rec, "save", lambda *a, **k: calls.append((a, k)))
|
||||
rec.length = 60
|
||||
rec.set_length(60) # turns the key grab on
|
||||
grabbed["ctrl+alt+r"]()
|
||||
assert calls == [((), {"length": 30})]
|
||||
rec.default_clip = 0
|
||||
grabbed["ctrl+alt+r"]()
|
||||
assert calls[-1] == ((), {"length": None})
|
||||
rec.close()
|
||||
@@ -268,13 +268,15 @@ setup_engine_venv() {
|
||||
return
|
||||
fi
|
||||
run uv venv --python 3.12 "$engine_dir/.venv"
|
||||
run uv pip install --python "$engine_dir/.venv" -r "$engine_dir/requirements.txt"
|
||||
if [ "$GPU_VENDOR" = "nvidia" ]; then
|
||||
# torch first: requirements.txt only says torch>=2.6, and PyPI's default wheel is built for a newer CUDA than
|
||||
# many installed drivers support (seen: torch 2.15+cu132 on a driver that stops at CUDA 13.0).
|
||||
step "NVIDIA GPU detected: installing CUDA 12.8 torch build"
|
||||
run uv pip install --python "$engine_dir/.venv" torch --index-url https://download.pytorch.org/whl/cu128
|
||||
else
|
||||
log " no NVIDIA GPU detected, skipping CUDA torch (engine will run CPU-only or be unavailable)"
|
||||
fi
|
||||
run uv pip install --python "$engine_dir/.venv" -r "$engine_dir/requirements.txt"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
||||