Re: [hatari-devel] Hatari works on RISC-V

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


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




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/