Headless launcher renders (Settings with Anti-aliasing, a game's profile, the Compare dialog from the registry, Statistics reading a real engine summary) and a real engine window with Compare strips and the stats Bar. README: the launcher's Compare and Statistics rows say what is now checked.
13 KiB
Integrate: round 2 (branch round2)
Task: bring round 2 together, no new features. The branch already held the owner's origin/main, ap/reconcile and
ap/compare. Merged here, one at a time with --no-ff: ap/stats, then ap/launcher-ui. Then fixed the two
known mismatches between the launcher and the engine (--compare spelling, the session summaries).
Commits
| Commit | What |
|---|---|
Merge branch 'ap/stats' into round2 |
conflicts in README.md, io.py, pipeline.py, settings.py, run.py (below) |
Merge branch 'ap/launcher-ui' into round2 |
conflict in profile.rs (below), plus one Compare test expectation |
Compare: the launcher builds --compare from the engine's own list |
step 2 |
Statistics: the launcher reads the engine's real session summaries |
step 3 |
Integrate: report, screenshots, README rows |
this file, docs/media/integrate/, README |
How each conflict was resolved (both sides kept everywhere)
engine/framegen/settings.py: the import line: from . import aa, compare, fill, looks, oslayer, stats.
engine/run.py: after the named overrides, Compare's --compare block (settings_for) and then stats'
--benchmark (overlay on) / --frametime-log overrides. --set (launcher-ui) merged cleanly and is still applied
after both.
engine/framegen/pipeline.py: both sides had changed the same calls.
present(frame, text, real=None, generated=False): Compare'sreal(the game's own frame for its strips) and stats'generatedflag (frame counted as generated). Every call passes both: early frames(…, None, True), the timed path(…, pl.a.frame if pl.b else None, pl.b is not None), the last(…, out_real, action is INTERP).- Inside
present: Compare'slive.source_sideand stats'coll.present(t_now, generated). Instant replay gets Compare'sclip_frame. - stats'
ai()helper now calls Compare's_generated(lambda: it.interpolate(...)). - Timings: one AI frame is measured twice, by two different readers. Compare's
_generatedtimes it for its label (framegen:ai). Stats'ai()times the same call for its "AI frame" stage. Each reader gets each frame once, so neither counts anything twice.
engine/framegen/io.py
- Keys: stats'
P(save a summary) and Compare'sC/Shift+Care both bound. They are separate keys. - Drawing: stats'
_report_configruns, then Compare's labels and dividers are drawn. close()closes Compare's panels and timer, and stats'look_timer. The GPU reader is closed only when this window owns it (_gpu_own, from stats).- Double-count fix (new): while Compare draws upscaler or look strips, the window's main GPU timer is already
off (Compare's side), so no upscale time reaches the stats there. RTX VSR's CUDA times were the exception: stats
read them straight from
vsr.gpu_ms, and in a scaler compare those include the VSR strip._report_config(…, compared=True)now skips them.- Result: during a scaler or look compare, the stats' "upscaler" stage is empty and each strip's cost is on its label.
- Not tested live (VSR never runs on the VM).
README.md
- Status table: stats' four rows (stats styles, watermark, session summary/benchmark, CSV log), then the newer
reconcile rows for instant replay and
install.sh. Stats' side had older copies of those two rows. - Sections: "Compare settings live", then "Statistics: overlay, summaries and benchmarks".
crates/summit-core/src/profile.rs: both fields kept, Compare's named aa and launcher-ui's [engine] table.
aais now handled like the other named engine settings:registry::named_for("aa"),NAMED_ENGINE_KEYS, andforced()reports it. So:- a later profile layer wins whichever way it sets anti-aliasing;
- the launcher's row writes
[engine] aaand drops an older namedaa; - when both reach the planner,
--aa=Xcomes first and--set=aa=Yafter it, and the engine applies--setlast.
- New test:
the_anti_aliasing_profile_field_and_the_engine_table_agree. - Compare's
anti_aliasing_goes_through_when_the_profile_has_oneexpected… --display --hz 60. launcher-ui deliberately stopped passing--hzwhen the profile sets no multiplier (its report). The expectation now ends at--display; the--aa=smaaassertion is unchanged.
Final key map (the engine's video window; over a game only the overlay key is taken)
| Key | Action | From |
|---|---|---|
| Insert (configurable) | the overlay | existing |
| M, Tab, right-click | the overlay (video window) | existing |
| Esc | hint (never quits) | existing |
| Ctrl+Q | quit (Q alone: hint) | existing |
| I | frame generation on/off | existing |
| S | stats style: Off, Minimal, Detailed, Graphs, Bar | existing; Bar added by stats |
| U | next upscaler | existing |
| Z | fill mode | existing |
| K / J, Shift+J | look on/off / next, previous look | existing |
| F | fullscreen | existing |
| L | delay test (PS5 Remote Play) | existing |
| R / Ctrl+1..6 | save instant replay / with a length | existing |
| B | save a comparison clip | existing |
| P | save a stats summary now | stats |
| C / Shift+C | Compare on/off / next thing to compare | compare |
| mouse drag on the divider | move the 2-strip split | compare |
No collisions. The OpenCV fallback window (q, f, s, i, r, b) has neither P nor C. The settings registry has 86 keys and no duplicates (checked).
Step 2: --compare spelling
The engine now publishes what --compare takes, and the launcher keeps no list of its own.
compare.registry()returns the syntax and, for each dimension: its key, name, the most strips it takes, its choices in order with names, and a suggested comparison (SUGGESTED:aa:off,fxaa,smaa,cas,scaler:off,bilinear,fsr,vsr,framegen:off,on,look:off,on).settings.specs_json()prints this under"compare". It is one small addition to the dict.- The launcher reads it leniently (
registry::CompareDim): a dimension without a key is skipped, and a suggestion that isn't one of the choices is dropped.CompareDim::spec()checks the choices against the engine's list.offer()builds the dialog's comparison. pane.rs open_compareuses it instead of guessing from setting keys (that guess producedinterp:true,falseandhz:60,90,120,150).
Tests:
- Engine:
test_the_registry_tells_the_launcher_what_compare_takes. Every listed choice and suggestion parses, and the old guesses (interp:true,false,fg:60,90,120,scaler:off,rtx-vsr) are refused. - Rust:
compare_is_built_from_what_the_engine_lists(lenient parse, offers, bad choices refused). - Rust, against the real engine:
the_real_engine_registry_reads_when_python_is_herenow runs the engine's ownframegen.compare.parseon every offer. It ran here: not skipped, python3 was found.
Step 3: session summaries
Stats writes summit-session-<time>.json / summit-benchmark-<time>.json (plus .txt) to
oslayer.data_dir()/sessions = ~/.local/share/smoovplay/sessions. --stats-dir changes that. The launcher's
sessions::dirs() already included that folder. What did not match the real file:
- No game name. The engine now writes
"game"fromSUMMIT_GAME, whichsummit runandsummit enhancealready set. Without it a summary belongs to no game, and the game's Statistics view stays empty. endedis local ISO time with no zone. The engine now also writesended_unix. The reader takesended_unix, and reads ISO times (as UTC) for older files.- Wrong duration and fps. The reader took
benchmark.secondsas the duration and could takeframes.game_fps_avgas the fps. It now readsduration_sandfps_avgfirst. - Lows
low1_fps/low01_fpsare shown as "1% low" / "0.1% low". A null 0.1% low (short run) is left out. - Settings line. It showed nothing, because the settings sit under
config.settings. It now shows the config words (model, multiplier, hz…). All 80-odd settings are still in the field list.
The real file: a 15 s run.py play30.mp4 --hz 60 --no-graph --benchmark 15 --out … --stats-dir … on the GPU VM
with SUMMIT_GAME=Voidrunner. It is checked in as
crates/summit-core/tests/fixtures/summit-benchmark-20261126-063312.{json,txt} and tested in
sessions::tests::reads_a_real_engine_summary. That test also reads stats' own older real summary
(docs/media/stats/real-session-summary.json) and finds the file in a folder next to its .txt. Engine test:
test_the_summary_names_the_game_the_launcher_started.
Step 4: profile editor
The Anti-aliasing row, the Compare tab and stats' Overlay rows (Items, Averaging window, Colour by threshold…) come through the registry. They show on the Settings page and in a game's profile. Compare itself is locked there ("session only"), as it should be.
Write-through check (headless, keys):
- In Voidrunner's profile, Anti-aliasing → Right Right wrote
[engine] aa = "fxaa"tocustom_voidrunner.toml. summit enhance window --profile custom:voidrunner --dry-runthen printed--set=aa="fxaa".- The engine's
parse_set('aa="fxaa"')returns('aa', 'fxaa').
What I ran
cd engine && env -u PYTHONPATH /root/.cache/summit-venv/bin/python -m pytest tests -q: 207 passed, 1 skipped. Before the merges compare had 125 and stats 150. No test function of either branch is missing (checked by name).CARGO_TARGET_DIR=/root/.cache/summit-target/summit-wt-round2 cargo test --workspace: all pass: summit-core 179, summit-gui 34, install_script 5, summit-cli 1.- No Rust test function from any merged branch is missing, except three that ap/launcher-ui removed on purpose
with the hard-coded rows (
frame_generation_rows_follow_the_choices,frame_multiplier_rows,game_frame_rate_and_output_resolution_rows; see its report).
- No Rust test function from any merged branch is missing, except three that ap/launcher-ui removed on purpose
with the hard-coded rows (
- The engine can't run on this host's CPU: it needs CUDA or DirectML ("ONNX Runtime isn't installed"). So both
engine runs were on the GPU VM, in my own
/home/user/summit-integrate. That directory holds an rsync of thisengine/, Pillow inpylib, the 4.22 lite weights andplay30.mp4, copied from/home/user/engine.- The first benchmark ran out of CUDA memory (CUDA graphs, with about 2 GB free). With
--no-graphit ran.
- The first benchmark ran out of CUDA memory (CUDA graphs, with about 2 GB free). With
Screenshots (docs/media/integrate/), all looked at
| File | What it is |
|---|---|
settings-upscaling-aa.png |
Headless render (Slint software renderer, 1600x900, demo library) of the Settings page, Upscaling section. The Anti-aliasing row comes from the registry; Compare is in the section list. |
profile-anti-aliasing.png |
Headless render: Voidrunner's profile, Upscaling, Anti-aliasing row focused ("Global · Off"), detail panel with the four choices. |
profile-compare-tab.png |
Headless render: the same profile, Compare section. "Compare" is locked (session only); What to compare, Strips and Strip 1-4 are offered. |
profile-overlay-items.png |
Headless render: the same profile, Overlay section scrolled to stats' Items rows. |
statistics-real-summary.png |
Headless render: Voidrunner's Statistics view reading the real engine-written benchmark summary from ~/.local/share/smoovplay/sessions of the demo home. The time is shown in UTC (05:33; the VM's local time was 06:33). The other tiles (42 h, 37 sessions) are the invented demo library's. |
compare-dialog.png |
Headless render: the Compare dialog, built from the engine's registry: --compare aa:off,fxaa,smaa,cas and so on. |
live-compare-aa-stats-bar.png |
Real engine window on the GPU VM (1280x720, X11, llvmpipe display, RTX 3090 shared with another service). Window capture of my window only (import -window). Input: play30.mp4 (recorded Voidrunner footage) with --compare aa:off,fxaa,smaa,cas --benchmark 40 --hz 60 --no-graph and the stats overlay on (Bar style, bottom). Off / FXAA 2.01/2.61 ms / SMAA-style 2.12/2.90 / CAS 1.33/1.74 ms, and the Bar: benchmark 0:31 left, 60 fps, game 30, generated 50 %, 1% low 27 fps, delay 6913 ms. |
About the numbers in the live picture:
- The AA times include the CPU→GPU→CPU trip that frames need with this software-OpenGL display (compare's report says the same).
- The 6.9 s delay is a backlog on the real-time file source after the AA filters' compile stall at start-up (5.6 s for FXAA). The same kind of backlog is described in stats' report. It is measured, not representative.
Not done, or untested
- Nothing was started from the launcher with a game. The Compare dialog and the Statistics view were checked only in headless renders and tests.
- Compare's strips and stats' stages together:
- Anti-aliasing cost has no stage of its own in the stats. It is in the frametime but not in the per-stage list.
- During a scaler or look compare, the stats' upscaler stage is empty; that cost is on the strips' labels.
- The VSR skip is untested live.
summit run --compare <spec>on the command line still checks only the syntax. A wrong choice is refused by the engine (ap.error), not by the CLI.- The Statistics field list is alphabetical, so the long
config.settings.*block comes before frametime and stages. Page Down reaches them. - The live window was only run with a video file on software OpenGL. Not run: a real game, Wayland, a GPU-rendered display.
/home/user/summit-integrateon the VM was left in place (my own directory). Two extra summaries there are from the live run.