Repository navigation
DSperate v3.5.0
GPU 3D update: the GPU raster can now draw the 3D layer at two or four times the DS's resolution, its picture has been reworked to close the pinholes and seams it used to leave in models, and more of its work has moved off the emulation thread. Also local-wireless fixes, two new handheld fixes, and the end of the RGA present. GPU 3D stays off by default: it is the enhanced path, and the software rasteriser remains the exact one.
Features
- GPU 3D SCALE (
video.gpu3d_scale,--gpu3d-scale, the GPU 3D SCALE menu row): with GPU 3D on, the Vulkan raster draws the 3D layer at up to 2x or 4x the DS's resolution. The 2D layers stay at the DS's resolution and the Vulkan present merges the two on the way to the panel, including where a game shows a captured 3D frame again (Spirit Tracks, Golden Sun: Dark Dawn). The game itself still reads a 1x copy. The setting is a ceiling: the raster draws no finer than the largest view on screen, so a 4X setting runs at 2x in a two-screen layout. It needs the Vulkan raster and the Vulkan present, nearest scaling and colour correction off; the menu row is greyed with the reason when it cannot take effect. - 4x MSAA at the new scales too: ANTI-ALIASING (
video.aa) on the Vulkan raster is 4x MSAA at 2x and 4x as it is at 1x, now resolved by the GPU itself. On the RG DS Plus the median frame at 2x with MSAA was within 0.4 ms of 2x without in our four test games, though the two heaviest (Spirit Tracks, Golden Sun: Dark Dawn) ran over budget more often. - A cleaner GPU picture: the GPU rasters now draw each polygon as the game's own triangles at their sub-pixel positions. Earlier builds nudged and grew polygons to imitate the DS's fill, which left pinholes and stray pixels in models made of small polygons (most visibly New Super Mario Bros.' characters, Etrian Odyssey and Pokémon White's Zekrom). The new picture was checked on the RG DS Plus on New Super Mario Bros., Etrian Odyssey, Pokémon White, Mario & Luigi: Bowser's Inside Story and Solatorobo at 1x, 2x and 4x, with and without MSAA. The OpenGL ES raster draws the same way; that change was checked on a desktop only.
- Edge marking on the GPU rasters: games that outline their models (Solatorobo, for one) now get their outlines with GPU 3D on, one DS pixel wide at every scale.
- A notice while shaders compile: the first time GPU 3D runs with a given setting, the Vulkan driver compiles its shaders, which takes a second or more on a Mali-G52. The screen now says so (GPU 3D / COMPILING SHADERS / FIRST TIME ONLY) at launch and when GPU 3D, anti-aliasing or the scale is changed in the menu, where before the picture simply froze. Later starts read the on-disk cache and show nothing.
- A notice when GPU 3D cannot start: if GPU 3D is on and no GPU raster can be opened, a pop-up says the 3D is being drawn on the CPU and why. Before, only the log did.
Performance
- GPU 3D geometry off the emulation thread (Vulkan): the vertex stage and the texture decoding for each 3D frame now run on the raster's own thread.
- The 3D layer reaches the panel without a read-back when it is merged in the present, and the emulation thread no longer waits for the GPU to finish a frame.
- What to expect on the RG DS Plus: at 2x without MSAA, New Super Mario Bros., Mario Kart DS, Super Mario 64 DS, Etrian Odyssey and Phantom Hourglass kept all or nearly all frames inside the 16.7 ms budget in our test scenes. Spirit Tracks and Golden Sun: Dark Dawn ran over it noticeably more often at 2x than at 1x, and are better left at 1x.
- The JIT's code arena uses huge pages where the kernel offers them (
DS_JIT_HUGE=0turns it off), which cuts instruction-TLB misses on the RK3566. - New Super Mario Bros. on the Miyoo A30: a VRAM store the game makes once a frame no longer stalls the emulation thread on the 2D worker.
- PGO profiles refreshed for all four builds.
Fixes
- Local wireless (by bmpriest): writes to VCOUNT are honoured, which is how Nintendo's wireless library lines a client's frames up with the host's; Mario Kart DS sessions now exchange once a frame in every session. A
--lan-joinguest keeps trying until its host answers, a session that comes up after the game has switched its radio on announces itself, and the wait for a LAN reply is configurable (net.lan_timeout_ms) for Wi-Fi access points with jitter. - Golden Sun: Dark Dawn hung on a white screen on ARMv7 (Miyoo A30 class): the 32-bit recompiler's
blx lrbranched to its own return address. - 30 fps lock under KMS on slower devices: when a frame ran over budget, the kernel worker that applies a page flip did not get to run before the next refresh, so every frame took two. Found on the BatleXP G350 (RK3326), where New Super Mario Bros., Spirit Tracks, Phantom Hourglass and Mario Kart DS now run well above 30 fps.
- Crash at start where the only Vulkan device is a software one (RK3326 images with Mesa's llvmpipe beside a Mali blob): software Vulkan devices are skipped unless named with
DS_VK_DEVICE. - The OpenGL ES raster opens on Mali GBM builds that have no default EGL display.
- Rotated panels under KMS (#49): where SDL reports the panel turned (the rotate-patched SDL builds of ArkOS and dArkMoss), the KMS route was refused and the fallback was slow on large panels. DSperate now scans out at the panel's own size and turns the picture itself, and on panels above 1.5 megapixels it falls back to the SDL renderer, not the window surface. We have no such device: this is covered by unit tests only, so reports are welcome on the issue.
Removed
- Edge cut and Enhanced anti-aliasing:
video.aa = enhancedand--aa-enhancedare still accepted and now mean plain anti-aliasing. Launchers that offer a third "enhanced" AA option can drop it. - The RGA present: it was a way round the cost of an older Vulkan present on the RK3566 and had since become only a fallback.
video.gpu_presentis now on or off;rgaandvulkanin an older config read as on. Where Vulkan does not open under Wayland, the fallback is the SDL renderer on its own thread, which is faster than the window surface used before. - Several
DS_*debug switches for GPU-raster experiments that are now settled.
Translations
- The new menu strings have stand-in Simplified Chinese translations, pending review by the translation's author.
Full changelog: v3.4.1...v3.5.0
Games run without BIOS or firmware dumps (built-in FreeBIOS and a generated firmware); a set dumped from your own DS unlocks the firmware boot and cycle-exact SWI timing. None is included.
Tarballs: linux-aarch64 is dynamically linked and stripped -- the one to package. linux-aarch64-static carries libstdc++/libgcc inside and keeps its debug symbols, for a device whose runtime is older than the build's, or for a backtrace.