Measured on the RTX 3090 (headless EGL, 1080p Voidrunner frame): GLSL FXAA 0.072 ms, CAS 0.022 ms against
torch (compiled) 0.99 and 1.03 ms. The window runs the setting this way unless OpenGL is software and CUDA is
there (SUMMIT_AA_GL=1/0 forces it); SMAA-style and the AA comparison stay torch.
Both sides kept: the present() closure takes Compare's real frame and stats'
generated flag; ai() times through Compare's _generated(make) so the AI frame
time goes to both the stats collector and Compare's label (one measurement,
two readers). P (summary) and C / Shift+C (Compare) both bound. While Compare
draws upscaler/look strips no upscale time goes to the stats (RTX VSR's CUDA
events included), so strips are not counted as the upscaler's cost.
README: stats' status rows and section beside Compare's; the newer instant
replay and install.sh rows from the reconcile side.
Anti-aliasing takes a frame held on the CPU to the GPU and back (a millisecond, against
hundreds on the CPU): on the GPU VM's llvmpipe the live view went from 2 to 20 fps. Upscaler Off
compares as the game's pixels enlarged as they are (nearest neighbour) instead of a small
picture in the middle that the strips missed. Labels sit below the stats' pill. compare_shot:
warm-up runs, a 2x2 frame generation sequence and zoomed crops of each variant side by side.
The pipeline applies the Anti-aliasing setting to every frame shown and puts the
anti-aliasing and frame generation strips together at the game's size (the Off strip holds
the game's own frames, in step with the generated ones); the window draws the upscaler and
look strips (each variant on the whole picture, timed with GPU queries, then its strip cut
out) and every label and divider with ui_draw. C toggles Compare, Shift+C the next thing to
compare; a 2-strip divider can be dragged. run.py: --aa, --compare, --compare-layout.
aa.py compiles each filter with torch.compile on a thread of its own when Triton is there.
devtools/compare_shot.py writes one compared frame as PNG (and zoomed crops).
If the engine exits with an error (no window found, the Wayland share dialog cancelled, a capture tool
missing), the game now goes on without Enhance and summit run says so; a normal engine exit still stops both.
Checked on Plasma 6.8 with --window class:nothing. Found there too: --width 0 --height 0 made summit run
'kscreen-doctor output.HDMI-A-1.mode.0x0@60' (kscreen-doctor refused it; the monitor stayed as it was);
zeros now mean not set. The stand-in test window can go fullscreen on a named monitor.
On a Wayland session, --window finds the game among XWayland windows (captured as on X11) and, on KDE, among
KWin's native windows (a one-shot KWin script reports pid, title, place and focus over D-Bus). A native window
goes through xdg-desktop-portal ScreenCast (one window, pointer hidden, persist_mode 2; the restore token is kept
in ~/.config/summit/screencast-token) and gst-launch-1.0 pipewiresrc piping raw BGR (CPU copy). Run on Plasma 6.8:
the dialog once, then restored for a new window of the same app with no dialog; about 50 new frames a second
at 1288x748. devtools/wayland_standin.py is a native Wayland test window that logs its keys and focus.