Repository navigation
Releases
Starlet v0.3.1
A fix for a Super Mario Galaxy crash in Freezeflame, plus the port author signature for Aurora ports. Every port of mine now pins this version.
Fixed
- The EFB clear at the start of each frame no longer stops the game when earlier draws leave fog range adjustment or coplanar mode on. J3D materials leave range adjustment on, and
GXSetFog(GX_FOG_NONE)doesn't turn it off. With fog off it changes nothing on the console, and the clear replaces depth, so coplanar mode doesn't matter either. Super Mario Galaxy hit this after the first star in Freezeflame and closed with "unsupported native MainLoop EFB clear state". - When the clear does reject its state, the error now names each register and its value.
New
- Aurora ports pass
STARLET_OVERLAY_AUTHORthrough to the overlay, which shows "Port by " at start and on the About tab.
Tested on
- Host tests pass on macOS, with a new test for the leftover clear state.
- Super Mario Galaxy on muOS (RG35XX-H): Freezeflame with the Ice Flower, about 5,800 frames with no clear error.
- Super Mario Sunshine on muOS (RG35XX-H) and KNULLI (RG40XX-H): launched from the frontend and quit.
- The other ports only pin this version. Only Galaxy uses this clear.
Starlet v0.3.0
Aurora ports get their RmlUi menus back under Starlet, plus faster Mario Party 4 scenes, opt-in frame skipping, a Face buttons option and a Super Mario Galaxy start-up fix. Every port of mine now pins this version.
New
- RmlUi under Starlet: Aurora ports built with
AURORA_ENABLE_RMLUInow draw their RmlUi screens with Starlet. Animal Crossing (Nookery) gets its launcher and in-game host menu back, and Mario Party 4 (Party Board) its first-run preset screen and R+Start menu. The UI is recorded on the game thread and drawn on the GL thread after the game frame. When no document is visible, nothing is recorded or drawn. Gradients, box shadows (hard-edged), opacity and brightness are drawn. Blur and other filters, clip masks, mask images and blend modes are not drawn; the element is drawn without the effect. The Aurora guide in the wiki lists each feature. - Frame skipping for Aurora ports: a port that runs two game ticks per presented frame can drop the first tick's draws while textures, programs and geometry stay up to date. The log's
[starlet] ratesline reports ticks, presented and skipped frames. Ports can also add toggles and choices to the overlay menu. - The overlay's Face buttons option now also swaps A/B and X/Y in the game's controller input.
- The overlay's second-screen code receives SDL events, for touch input on two-screen handhelds.
Faster
- Textures a game rewrites while in use are kept until a write reaches them, instead of being copied and hashed every frame. Mario Party 4's board scene copied 3.7 MB a frame, about 3 ms on the game thread.
- Indexed float positions and texture coordinates are read straight from the array: vertex conversion 9.1 to 7.0 ms and box culling 3.7 to 2.6 ms in Mario Party 4's board scene on an H700.
- Resident geometry is checked with two hashes instead of a full comparison within one memory state: lookup 9.9 to 8.7 ms in Mario Party 4's title scene.
Fixed
- Constant destination alpha under an RGB8 EFB no longer aborts the frame. Super Mario Galaxy could hit this at start-up, depending on thread timing.
For port authors
- Code that calls ImGui, including code in RmlUi screens, must check
ImGui::GetCurrentContext()first. Starlet runs without an ImGui context. integrations/aurora/aurora-hooks-upstream.patchandaurora-hooks-upstream-5179721.patchnow carry the RmlUi hook.
Tested on
- This version: Animal Crossing (Nookery) and Mario Party 4 (Party Board) on muOS (RG35XX-H), with their RmlUi menus opened and closed. Host tests pass on macOS and aarch64 Linux.
- The other ports only pin this version. The change since de7e436 only touches the Aurora bridge, which they don't build.
Known issues
- RmlUi's per-frame update costs about 0.3 ms on the game thread while a port keeps a document loaded, as it does with stock Aurora.
- ROCKNIX's Panfrost driver is still slower than the Mali driver on the same H700 handhelds.
This is an unofficial fan project, not affiliated with Nintendo. GPL-3.0.
Starlet v0.2.0
A large update: faster rendering and threading, fixes for black screens and broken effects found while bringing up The Wind Waker, Mario Party 4 and Twilight Princess, and tools to replay GX traces. Every port of mine is now built on this version.
Faster
- Guest threads run as fibers on one host thread, and interrupts are taken on the running thread, including asynchronously while a thread spins.
- The renderer keeps draw state, streamed vertex data and uniform snapshots between frames, shares draw groups and skips SDK state the game sets to the value it already has.
- Draw and program keys are derived only when a draw reads them.
- EFB copies: consecutive copies of one EFB render in one pass, resident copies are cropped with framebuffer blits, and copies the CPU reads back are written to memory without stalling the game.
- EFB peeks and depth readbacks are answered from snapshots instead of draining the GPU. Depth readbacks arrive without a thread waiting for them.
- Shader programs that a builder worker compiles stay with that worker instead of being compiled again on the GL thread.
Fixed
- GX registers survive a command stream failure, so a stage transition no longer leaves the screen black (The Wind Waker).
- EFB peeks read the rows below the frame correctly (The Wind Waker's Omori).
GXWaitDrawDonereturns as soon as the newest draw is done.- Indirect textures with 5-, 4- and 3-bit offsets, and LOD from unmodified coordinates (Mario Party 4's curtains).
- EFB copies to I4 textures, three trailing quad vertices drawn as a triangle, and slow GPU fences waited for instead of failing after one second.
- THP video decoding keeps its memory off the game's heap, which fixes a movie crash.
- A fault inside an asynchronous interrupt or another handler is reported as the original fault.
- GCC 12 to 14 built two register tables wrong, which broke program keys and draw batching in GCC builds. The ports build with clang and were not affected.
New
- Aurora bridge: Aurora-based ports (Twilight Princess, Animal Crossing, Mario Party 4) can render with Starlet on upstream Aurora, with sbc-port-overlay drawn on top. See the Aurora guide in the wiki.
- GX trace recording and replay: record a game's command stream on a device and replay it on a host, with a cold program cache and the shader builder on.
tools/replay-all.shruns the whole set. - Audio diagnostics: output gaps and replayed blocks are logged with the audio counters, the SDL audio device and ALSA state are logged once, and
STARLET_AUDIO_PROBE=file.wavrecords what the device callback plays. - A GameCube stick shape that models the controller's gate and the SDK clamp.
- An opt-in second frame in flight, and full-resolution EFB snapshots on request.
- The host tests now run on aarch64 Linux for every push.
Tested on
- This version: Super Mario Galaxy, Super Mario Sunshine (decomp), Resident Evil 4 and Luigi's Mansion on KNULLI (RG40XX-H). Host tests pass on macOS and aarch64 Linux, and the GX trace replays pass.
- 8d67eec, which differs only by the audio logging and the GCC fix: Pikmin 2 and Super Mario Sunshine (decomp and gc-recomp) on muOS (RG35XX-SP), Super Mario Galaxy, Resident Evil 4 and Luigi's Mansion on KNULLI, and The Wind Waker on muOS (RG35XX-H) and ROCKNIX (RG DS).
Known issues
- Resident Evil 4 crackles on some handhelds. The new audio logging is there to find out why.
- ROCKNIX's Panfrost driver is still slower than the Mali driver on the same H700 handhelds.
This is an unofficial fan project, not affiliated with Nintendo. GPL-3.0.
Starlet v0.1.1
A small update with one fix and two speedups for games that read the EFB back on the CPU.
What changed
- Texture copies made right after direct draws are now read back on the GL thread. With threaded submission they came back empty, and without it they missed the draws just before them.
- EFB peeks from draw-sync callbacks are answered from a snapshot taken at the callback's token, instead of draining the GPU for every peek. Super Mario Sunshine does this each frame for the sun and for Mario.
- Depth peeks with no EFB write between them now share one depth readback. Resident Evil 4 tests 100 to 220 points a frame for its lens flares and light glows. One lit room on the RG35XX-H went from 6 to about 15 fps.
The peeks return exactly what a live read would.
Tested on
gc-recomp's Luigi's Mansion and Super Mario Sunshine on Spruce (Miyoo Flip), KNULLI (RG40XX-H) and AmberELEC (R36S): same frame rates and same picture as 0.1.0.
Known issues
- ROCKNIX's Panfrost driver is still slower than the Mali driver on the same H700 handhelds.
This is an unofficial fan project, not affiliated with Nintendo. GPL-3.0.
Starlet v0.1.0
First release of Starlet, the GameCube and Wii layer behind my Linux handheld ports of Super Mario Galaxy, Pikmin 2 and Resident Evil 4, and behind gc-recomp.
It is built for PortMaster handhelds: OpenGL ES 3.1 on Mali-class GPUs, the firmware's SDL2 and about 1 GB of RAM.
What's in it
- GX: command stream decoding, TEV, textures and an OpenGL ES 3.1 renderer that batches draws, keeps EFB copies on the GPU and builds its shader programs ahead of time.
- Discs: ISO/GCM, WIA and RVZ, with first-launch extraction into a port's game data.
- Memory cards as Dolphin GCI folders, written off the game thread.
- SDK services for source ports: threads, alarms, DVD, PAD, ARAM, audio (AI/AX), NAND, THP video and the GX FIFO.
- SDL2 audio and controller input, and a clean exit with saves flushed when the frontend closes the port.
Tested on
- muOS on the Anbernic RG35XX-H
- ROCKNIX on the Anbernic RG40XX-H
- Spruce on the Miyoo Flip
- AmberELEC on the R36S
Known issues
- ROCKNIX's Panfrost driver is slower than the Mali driver on the same H700 handhelds. Luigi's Mansion runs at about 21 fps there against 30 on muOS.
Thanks to the Petari, Pikmin 2 and Resident Evil 4 decompilation projects. Some GX details were checked against Dolphin's behaviour.
This is an unofficial fan project, not affiliated with Nintendo. GPL-3.0.