Repository navigation
Releases
0.3.1
The frame graph no longer slows games down.
- With the graph shown, every frame waited on the GPU while the overlay wrote the newest bar into its font texture. On Mali that wait cost 1-7.6 ms per frame: Dusklight on an RG40XX-H dropped from 25 to 21 fps with the Graph preset. The bars are now drawn from a small uniform array, so nothing waits on the GPU anymore.
- The cost row now shows the overlay's real time per frame. It used to show only CPU time, which hid the GPU wait and under-reported by up to 20x.
Overlay time per frame with the Graph preset, before and after:
| Port | Device | Before | After |
|---|---|---|---|
| Dusklight | RG40XX-H (KNULLI) | 5.6 ms, 21.0 fps | 0.19 ms, 24.9 fps |
| BioShock | RG40XX-H (KNULLI) | 7.6 ms | 0.22 ms |
| Galaxy | RG40XX-H (KNULLI) | 1.15 ms | 0.42 ms |
| Dusklight | RG35XX-H (muOS) | 1.25 ms, 28.3 fps | 0.16 ms, 29.2 fps |
With the fix, the Graph and Full presets run at the same speed as the overlay turned off, within run-to-run noise. Hidden still costs about 0.02-0.03 ms. The GLES1 renderer never had this problem and is unchanged.
Tested in Dusklight, Super Mario Galaxy and BioShock on an RG40XX-H (KNULLI), and Dusklight on an RG35XX-H (muOS). The overlay's FPS reading matches the frames counted on the device.
0.3.0
- Ports can set an author with
SPO_PORT_AUTHORor theport_authorfield. The overlay shows "Port by " for 5 seconds at start and on the About tab. - On GL contexts without shaders, the overlay now draws with a GLES1 renderer instead of drawing nothing.
- Guide opens the menu only on a short tap. A longer hold passes through to the firmware, so Menu+volume hotkeys work in game.
- The performance sampler thread now starts on ports with a lot of static TLS. It used to fail there because glibc counts static TLS against the thread's stack.
- The version string now matches the release. v0.2.2 still reported 0.2.1.
Tested in Sunshine on an RG35XX-H (muOS) and an RG40XX-H (KNULLI). Galaxy and Luigi's Mansion ran the same code before the version bump.
0.2.2
- New Face buttons option at the bottom of the Overlay tab. "As set" is the default. "Swapped" exchanges A with B and X with Y. It's for frontends whose controller layout puts A and B on the opposite buttons from what a game expects, like PortMaster's Nintendo layout on ROCKNIX.
- The choice is saved as
face_buttonsin the port's own settings file and applies right away. Nothing outside the port changes. - The overlay menu always reads the raw buttons, so menu navigation stays the same with either choice.
- Ports that load the preload shim get the option with no code change: it covers
SDL_PollEvent,SDL_WaitEvent,SDL_WaitEventTimeoutandSDL_GameControllerGetButton. - Statically linked ports pass button numbers through
spo_face_button(n)before reading them, or callspo_map_sdl_event/spo_map_sdl3_eventon controller events the overlay didn't consume. Starlet ports get this from Starlet de7e436. - Raw joystick reads (
SDL_JoystickGetButton, joystick button events) andSDL_PeepEventsaren't covered. The details are indocs/api.md.
Tested on macOS and in an aarch64 Linux container with a virtual controller. Not yet checked on a handheld.
0.2.1
- The second screen now works for SDL3 hosts.
src/sdl3.caddsspo_handle_sdl3_screen_event, and CMake compiles it intospo::staticwhenSDL3::SDL3is already a target. The Overlay tab's Screen row and the second-screen routing behave as with SDL2. Detection also accepts the SDL3 shim'ssdl2video driver. - Aurora ports under Starlet need Starlet 53d7926 (
feat(overlay): pass SDL events to the overlay's second-screen code) together with this release. Checked with Nookery on an RG DS under ROCKNIX: Screen = Second draws the overlay and menu on DSI-1, and Screen = Game moves them back over the game. - SDL2 ports need no code change: a new pin and rebuild is enough. SDL3 hosts that map controller events themselves also pass every event to
spo_handle_sdl3_screen_event. - The README's second-screen image is Nookery on the RG DS.
Touch input on the second screen under SDL3 is not tested.
0.2.0
First tagged release.
- Second-screen support: on a handheld with two panels (tested on the RG DS under ROCKNIX) the overlay and its menu draw on the second screen. The Overlay tab has a Screen row to move them back over the game, and a tap on the second screen works the menu. A port needs no code change beyond a new pin and rebuild, and it can draw its own content there with
spo_screen_open. - Preload shim:
libspo_preload.so(-DSPO_BUILD_PRELOAD=ON) adds the overlay and menu to an SDL2 OpenGL or GLES port that does not link the library. Start the port withLD_PRELOAD;SPO_CONFIGnames the config file. - Settings files: a launcher-only port can declare its own tabs and options (toggle, choice, integer) in an ini file named by
SPO_SETTINGS. Values save in the config file, the menu says a change applies at the next start, and the docs have a one-line way for a launcher to read a saved value. - Fixes since the first commits: GPU load from Mali hardware counters when devfreq has none, a controller that is added before the application opens it, and a port notice under the help text.
Screenshots are from an RG DS: the Full preset and the Show tab over Animal Crossing, and the second-screen mode with the game on the top screen and the overlay on the lower one. Details are in docs/api.md.