Skip to content

Releases

ProjectDural v1.2.0-arm64 (ARM64 PortMaster)

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:39

ProjectDural v1.2.0-arm64 — Vulkan build no longer renders upside down

The standalone Vulkan runtime (vf2-vulkan.aarch64, ProjectDural-Vulkan-aarch64.zip) drew the
whole game vertically mirrored: the attract mode, the fighters, the sky and the 2D overlays ("PUSH
START BUTTON", "© SEGA 1994") all appeared head over heels. This release fixes it.

What was wrong

platform/arm64/gpu_vulkan.cpp composites the picture itself: the backdrop, mid, top and
side layers and the 3D compute target are each drawn as a textured quad by a precompiled SPIR-V
shader, which lays its corners out as dst + corner * dst_size for both the clip-space position
and the texture coordinate. px_to_ndc() — the display-pixel (top-left origin, +Y down) to
clip-space conversion — mapped py = 0 (the top row of the picture) onto y = -1, but SDL_GPU's
NDC has +Y up (SDL_gpu.h, Coordinate System). Every layer therefore landed mirrored about the
middle of the screen. The menus were unaffected because Dear ImGui builds its own projection.

The fix

Two lines in platform/arm64/gpu_vulkan.cpp, and the reasoning is in the comments beside them:

  • px_to_ndc() now emits the bottom edge of the rectangle (1 - (py + ph) / dh * 2), so the
    rectangle's top edge reaches the top of the screen.
  • The per-quad uniform pushes src_v + src_vh with a negative height, so texture row 0 (the
    picture's top) sits on the quad's upper edge. Flipping the rectangle alone was not enough: the
    sampler would still walk the texture upwards.

Verified by running the rebuilt binary under Wayland and capturing the frame: text upright, sky
above, floor below, and the 3D target aligned with the 2D layers. The ImGui ROM-required dialog
still renders upright (it never used this path).

Unchanged

Nothing else: no emulation, audio, input, netplay or shader changes. The OpenGL ES 2.0 PortMaster
build (vf2.aarch64 / ProjectDural-PortMaster-aarch64.zip) never had this bug — it maps to NDC
in its own vertex shader — so it is rebuilt unchanged from the same source. Zero ROMs and zero game
code.
Automated ROM-free AArch64 / OpenGL ES 2.0 / SLJIT PortMaster build of ProjectDural, for Anbernic RG34XX / Allwinner H700 (Mali-G31) and compatible ARM64 Linux handhelds, including the Powkiddy RGB30 (Mali-G52) and TrimUI Smart Pro (PowerVR GE8300).

Contents (Zero ROMs / Zero Game Code)

  • Virtua Fighter 2.sh (PortMaster launcher: starts the cores the 4-thread pipeline needs, pins the CPU governor to performance, prints a [sys] hardware line to log.txt)
  • projectdural/vf2.aarch64 (ARM64 Cortex-A53, SLJIT ARM64 i960 JIT, Core 2 SCSP sound worker, OpenGL ES 2.0, ARM64 NEON, max GLIBC_2.28, statically linked zlib & libc++)
  • projectdural/assets/backgrounds/select.png (painted 3:2 character select sides, CC BY 4.0)
  • projectdural/gamecontrollerdb.txt, PortMaster metadata, and licences

Quick Setup (BYOD)

  1. Extract ProjectDural-PortMaster-aarch64.zip into your handheld's ports/ folder.
  2. Copy your own legal MAME vf2.zip (Version 2.1) into ports/projectdural/roms/vf2.zip.
  3. Launch Virtua Fighter 2 — SLJIT compiles the i960 program to native ARM64 automatically on startup (no PC pre-build required!).

Report issues at https://github.com/DanimanX/ProjectDural/issues — ports/projectdural/log.txt plus the [sys] and [perf] lines there make a performance report actionable.

ProjectDural v1.1.0-arm64 (ARM64 PortMaster)

Choose a tag to compare

@github-actions github-actions released this 24 Nov 21:52

ProjectDural v1.1.0-arm64 — Standalone Vulkan (SDL_GPU SPIR-V) Runtime

This release adds a second standalone, ROM-free AArch64 binary (vf2-vulkan.aarch64, packaged as ProjectDural-Vulkan-aarch64.zip) alongside the existing OpenGL ES 2.0 PortMaster build (ProjectDural-PortMaster-aarch64.zip).

What's new

  • Standalone AArch64 Vulkan runtime (vf2-vulkan.aarch64): built with static SDL3 (SDL_GPU Vulkan + SPIR-V compute shaders), Dear ImGui SDL_GPU3, SLJIT ARM64, and static zlib / libc++ (max GLIBC_2.27, zero libstdc++.so / libSDL3.so / libz.so dependency). libvulkan.so.1, Wayland, X11, KMSDRM, and PipeWire / PulseAudio / ALSA are loaded dynamically at runtime via dlopen.
  • Pixel-exact Model 2A 3D + 2D composition: delegates 3D polygon rasterization to src/gpu/gpu3d_sdlgpu.cpp SPIR-V compute shaders and composites System 24 2D layers (backdrop, mid, top, sides) directly on the Vulkan swapchain.
  • Measured on OnePlus Pad Pro (Qualcomm SM8650 / Adreno 750 / Mesa Turnip 26.3.1, Arch Linux ARM, Wayland + PipeWire):
    • Live gameplay (vf2.zip): 120.0 FPS (display-capped; emu=4.82 ms, snd=4.54 ms, vulkan=0.52 ms @ 1532 polys).
    • --bench-gles 120 (1500 polys, 100% scale): 1788.0 FPS (0.56 ms/frame).
    • --bench-frames 180 (headless SLJIT): 271.01 FPS.

Unchanged

The OpenGL ES 2.0 PortMaster build (vf2.aarch64 / ProjectDural-PortMaster-aarch64.zip) for Anbernic RG34XX, Powkiddy RGB30, and TrimUI Smart Pro remains unchanged. Zero ROMs and zero game code.
Automated ROM-free AArch64 / OpenGL ES 2.0 / SLJIT PortMaster build of ProjectDural, for Anbernic RG34XX / Allwinner H700 (Mali-G31) and compatible ARM64 Linux handhelds, including the Powkiddy RGB30 (Mali-G52) and TrimUI Smart Pro (PowerVR GE8300).

Contents (Zero ROMs / Zero Game Code)

  • Virtua Fighter 2.sh (PortMaster launcher: starts the cores the 4-thread pipeline needs, pins the CPU governor to performance, prints a [sys] hardware line to log.txt)
  • projectdural/vf2.aarch64 (ARM64 Cortex-A53, SLJIT ARM64 i960 JIT, Core 2 SCSP sound worker, OpenGL ES 2.0, ARM64 NEON, max GLIBC_2.28, statically linked zlib & libc++)
  • projectdural/assets/backgrounds/select.png (painted 3:2 character select sides, CC BY 4.0)
  • projectdural/gamecontrollerdb.txt, PortMaster metadata, and licences

Quick Setup (BYOD)

  1. Extract ProjectDural-PortMaster-aarch64.zip into your handheld's ports/ folder.
  2. Copy your own legal MAME vf2.zip (Version 2.1) into ports/projectdural/roms/vf2.zip.
  3. Launch Virtua Fighter 2 — SLJIT compiles the i960 program to native ARM64 automatically on startup (no PC pre-build required!).

Report issues at https://github.com/DanimanX/ProjectDural/issues — ports/projectdural/log.txt plus the [sys] and [perf] lines there make a performance report actionable.

ProjectDural v1.0.3-arm64 (ARM64 PortMaster)

Choose a tag to compare

@github-actions github-actions released this 23 Nov 17:07

ProjectDural v1.0.3-arm64 — TrimUI Smart Pro support: 35 → 55 FPS

This release is about one hardware bug that had nothing to do with the GPU, plus the
instrumentation that found it.

TrimUI Smart Pro (Allwinner A133P / PowerVR GE8300) now runs at speed

  • Measured on retail hardware, real fights: median 49.9 FPS (p90 53.6, peak 55.7) on
    Spruce's own CPU policy, and median 53.8 FPS (p90 57.4, peak 57.4) with the CPU
    pinned to performance at 2.0 GHz. Before this release the same console sat at a 34.9 FPS
    median.
  • Cause: Spruce's CPU Mode was Powersave, which deliberately hot-unplugs cores 1–2
    (DEVICE_MIN_CORES_ONLINE=03). The port pins four threads by role (main / emulation /
    sound / audio); a pin to an offline core failed with EINVAL, the error was dropped, and all
    four threads kept the affinity they inherited — the whole "4-core pipeline" ran on core 0.
  • Fix, in two places: the binary resolves every role against the cores actually online and
    says which core each thread got; the launcher starts cores 1–2 for the session, puts back
    offline the ones it started, and restores the governor and the sysfs file modes on exit.

Also in this release

  • Render Scale (100/85/75/60/50 %) in Menu → Display, drawn off-screen and blitted up.
    Measured on the GE8300: no gain there (it is not fill-rate bound), so the default stays 100 %.
  • PowerVR-aware scissor handling: one band scissor for the 3D pass instead of one per
    polygon on tile-based GPUs, detected from the renderer string. Also no measured gain on this
    hardware; it is kept because it costs nothing and is right for the architecture.
  • Diagnostics you can act on: every [perf] line now carries cpu=, scale=, scissor=,
    upl= (2D texture upload) and sub= (draw submission), and the launcher logs a [sys] line
    with per-core clock and governor, free memory and load. --bench-gles N runs a ROM-free,
    deterministic render benchmark.
  • Launcher: stops trusting [ -w ] on the cpufreq nodes — as root it reports true while the
    write is still refused, because those files keep mode 0444. It chmods them open as Spruce
    itself does, then verifies the governor actually took.

Unchanged

Anbernic RG34XX (Allwinner H700 / Mali-G31) still holds its native 57.52 FPS, as does the
Powkiddy RGB30 (RK3566 / Mali-G52) — this release does not touch the rendering path they use.
Zero ROMs and zero game code, as always.


Automated ROM-free AArch64 / OpenGL ES 2.0 / SLJIT PortMaster build of ProjectDural, for Anbernic RG34XX / Allwinner H700 (Mali-G31) and compatible ARM64 Linux handhelds, including the Powkiddy RGB30 (Mali-G52) and TrimUI Smart Pro (PowerVR GE8300).

Contents (Zero ROMs / Zero Game Code)

  • Virtua Fighter 2.sh (PortMaster launcher: starts the cores the 4-thread pipeline needs, pins the CPU governor to performance, prints a [sys] hardware line to log.txt)
  • projectdural/vf2.aarch64 (ARM64 Cortex-A53, SLJIT ARM64 i960 JIT, Core 2 SCSP sound worker, OpenGL ES 2.0, ARM64 NEON, max GLIBC_2.28, statically linked zlib & libc++)
  • projectdural/assets/backgrounds/select.png (painted 3:2 character select sides, CC BY 4.0)
  • projectdural/gamecontrollerdb.txt, PortMaster metadata, and licences

Quick Setup (BYOD)

  1. Extract ProjectDural-PortMaster-aarch64.zip into your handheld's ports/ folder.
  2. Copy your own legal MAME vf2.zip (Version 2.1) into ports/projectdural/roms/vf2.zip.
  3. Launch Virtua Fighter 2 — SLJIT compiles the i960 program to native ARM64 automatically on startup (no PC pre-build required!).

Report issues at https://github.com/DanimanX/ProjectDural/issues — ports/projectdural/log.txt plus the [sys] and [perf] lines there make a performance report actionable.

ProjectDural v1.0.2-arm64 (57.5 FPS on Anbernic RG34XX / Allwinner H700)

Choose a tag to compare

@DanimanX DanimanX released this 22 Nov 01:09

ProjectDural v1.0.2-arm64 — Full-Speed 57.5 FPS on Anbernic RG34XX (Allwinner H700)

Highlights

  • Full Arcade Speed (57.52 Hz) on Allwinner H700: Reaches 57.3–57.7 FPS during 1500–1600 polygon gameplay on Anbernic RG34XX (4x Cortex-A53 @ 1.5 GHz + Mali-G31 MP2).
  • MB86233 TGP & Geometrizer Optimizations:
    • 8-byte pre-decoded DecodedOp + computed-goto dispatch table + bitmask-guarded ALU post-ops (kIntAluPostMask / kFpAluPostMask).
    • Register-cached transformation matrix/focus/light/LOD and direct command_buffer + model2_3d_process_polygon invocation in geo_parse_np_ns, geo_parse_np_s, geo_parse_nn_ns, and geo_parse_nn_s.
    • Zero-copy frustum clipping (clip_polygon), single-reciprocal 3D projection (model2_3d_project), and direct pre-sized build_gpu_polys export.
  • OpenGL ES 2.0 & 2D System 24 Tilemap Fixes & Optimizations:
    • Fixed 3D character face UVs (GL_REPEAT), sky background color mask (0x001fu in NEON RGB565), and KO slow-motion stutter (rectangle texture hashing hash_tex_rect + in-place glTexSubImage2D).
    • Split 2D background cache (tile_ver_bg), active tile-row priority bitmasks (m_layer_cat_rows), and fast window-masked draw_sides().
  • 4-Core Pipeline & ThinLTO:
    • Core 0 (GLES 2.0 + Swap) overlapped with Core 1 (i960 SLJIT + TGP + Geometrizer), Core 2 (autonomous 44.1 kHz 68000+SCSP audio worker), and Core 3 (parallel 2D tilemap worker).
    • Cross-module ThinLTO (-flto=thin) targeting aarch64-linux-gnu.2.28 (cortex_a53).
  • PortMaster Ready: Validated schema v3 port.json and README.md included.

ProjectDural v1.0.1-arm64 (ARM64 / Anbernic RG34XX PortMaster)

Choose a tag to compare

@github-actions github-actions released this 21 Nov 19:02

Automated ROM-free AArch64 / OpenGL ES 2.0 / SLJIT PortMaster build of ProjectDural tuned for Anbernic RG34XX (Allwinner H700) and compatible ARM64 Linux handhelds.

Contents (Zero ROMs / Zero Game Code)

  • Virtua Fighter 2.sh (PortMaster launcher with performance CPU governor)
  • projectdural/vf2.aarch64 (ARM64 Cortex-A53, SLJIT ARM64 i960 JIT, Core 2 SCSP sound worker, OpenGL ES 2.0, ARM64 NEON, max GLIBC_2.28, statically linked zlib & libc++)
  • projectdural/assets/backgrounds/select.png (painted 3:2 character select sides, CC BY 4.0)
  • projectdural/gamecontrollerdb.txt (includes Anbernic RG34XX mapping), PortMaster metadata, and licences

Quick Setup (BYOD)

  1. Extract ProjectDural-PortMaster-aarch64.zip into your handheld's ports/ folder.
  2. Copy your own legal MAME vf2.zip (Version 2.1) into ports/projectdural/roms/vf2.zip.
  3. Launch Virtua Fighter 2 — SLJIT compiles the i960 program to native ARM64 automatically on startup (no PC pre-build required!).