Re: [hatari-devel] Hatari works on RISC-V |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari works on RISC-V
- From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Date: Sun, 29 Jun 2025 16:13:31 +0300
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.dnamail.fi A998A2113914
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=helsinkinet.fi; s=2025-03; t=1751202811; bh=QoXuirpwtGT/PiZFjtfWU5HHCETWlXyoPIcwytjCz4A=; h=Date:Subject:To:References:From:In-Reply-To:From; b=TuYjFCjEA3vsX7ppEfQ0mRBDhfaQNIbUvb/OrK01bbTHRwi/TClEBNzB+8PB84iSN NZz3QRPNm7HbqIZf3bzvPuIz0D7Nt4LZtf4Vge8DGVnuL7rsAN0MLRDf9HhYjub2t6 MxhYDnEcj4l8r3WpAZRSIXErzphIpoA6sPrHwoV7GEaRuwjwlpkxEB4i6WjSUcRA1z qeiudQDu388JNV6vndE/Monz35NsZUQb1ZxOQLBfIojjLyiDPGH/Vjeqa4gYnwQM+p p0bhntIzdOxz5dE/0+QbYg7FFbdjHVU9nvVRSbxWCbtq5xzjoHldLHwZRx3TjFQe3e Cy5gIJNNREN1A==
Hi,
On 28.6.2025 14.40, Jean-Baptiste Queru wrote:
Good job to everyone involved in the release of the latest hatari. Combined
with the latest emutos, this makes me feel warm inside!
I have been experimenting with RISC-V, including for my retrocomputing
hobby. I'm happy to say that hatari compiles out of the box and runs just
fine.
This is expected. Hatari already works on multiple platforms and does
not contain any assembly code, most platform specific issues are with
underlying libraries like libSDL (and then there's Windows).
I don't have actual RISC-V hardware, I'm still working on that, so I'm
working under qemu emulation.
User-qemu or system-qemu? If latter, does it emulate some GLES2+ HW,
for which you've installed a RISC-V driver?
Some system details: my host is a 13900K
running Ubuntu 24.04 with 128GB of RAM and the integrated GPU. I'm using
qemu 10.0.2. My guest is Ubuntu 25.04 with 32GB of RAM and 8 cores,
1280x1024. qemu and hatari are built from source.
In ideal conditions, I seem to be benchmarking at ~2x real time on my
emulated RISC-V, ~130+ VBL/s on emutos-1.4 512-us (that's with --zoom 1 on
the guest, and no fractional scaling on the host). That's better than
geekbench would suggest. That also seems to be a few percent faster than
2.5.0, but I haven't tried to measure precisely.
However different settings for graphics have a massive impact on
emulation performance, through obviously no fault of hatari's. The moment I
use --fullscreen, performance falls to ~50 VBL/s (I benchmark with
--frameskips 0).
On the host, I get about 2700 VBL/s, no matter whether I use a window or
--fullscreen.
If you run glxinfo under your RISC-V qemu setup, what GL(ES) driver it
reports?
If the gfx driver under libSDL is using SW rendering, that will
definitely be slow when Hatari RISC-V binary itself is emulated...
I'm wondering whether someone here has actual RISC-V hardware and
performance numbers for hatari. Until then, if you're using hatari on
RISC-V qemu and are having performance issues, try using a smaller window
for hatari, I'm at --zoom 1 --max-width 352 --max-height 216
Unless you're running overscan demos/games, you can disable screen
border emulation.
- Eero