Building Hatari 1.9 w/ SDL2 for raspberry pi

A forum about the Hatari ST/STE emulator - the current version is v2.0.0

Moderators: simonsunnyboy, thothy, Moderator Team

stween
Atarian
Atarian
Posts: 3
Joined: Sat Mar 07, 2015 6:38 am

Building Hatari 1.9 w/ SDL2 for raspberry pi

Postby stween » Thu Oct 06, 2016 5:57 pm

Hi! I want to use a spare RPi as a Hatari box plugged into my TV.

Debian's currently carrying Hatari 1.8 -- which runs great! -- but I want Hatari 1.9 for the SDL2 scaling goodness to fill my TV screen.

Building Hatari 1.9 is easy, but the resulting binary turns out to not be so performant. As in, unusable, in my case: frame rates drop to ~1 per second. I've also tried running with some of the flags described here, but with no real performance boost.

Hatari and SDL2 both build without issue; here's the console logs for SDL2 and for Hatari. (Version info for other installed packages is here.)

Before I start running around building, upgrading, rebuilding, tracing: anybody got any ideas on what I need to fix to make this fly? Happy to provide more output/debug/etc.

Faucon2001
Atari Super Hero
Atari Super Hero
Posts: 645
Joined: Sat Oct 26, 2013 11:19 pm
Location: Brasil
Contact:

Re: Building Hatari 1.9 w/ SDL2 for raspberry pi

Postby Faucon2001 » Fri Oct 07, 2016 12:43 pm

You should try with SDL 1.2, it works better with a Rapi.
Philippe

Firebee, Falcon, STE, Aranym Box, Hatari Pi Box.
My music http://www.philippeworld.net/
My photography http://phil-67.deviantart.com/
EasyAraMint, BeeKey and BeePi https://sites.google.com/site/emaappsarch/home

stween
Atarian
Atarian
Posts: 3
Joined: Sat Mar 07, 2015 6:38 am

Re: Building Hatari 1.9 w/ SDL2 for raspberry pi

Postby stween » Fri Oct 07, 2016 2:49 pm

Faucon2001 wrote:You should try with SDL 1.2, it works better with a Rapi.

The aim is to use SDL2 to get screen scaling for ST emulation.

Faucon2001
Atari Super Hero
Atari Super Hero
Posts: 645
Joined: Sat Oct 26, 2013 11:19 pm
Location: Brasil
Contact:

Re: Building Hatari 1.9 w/ SDL2 for raspberry pi

Postby Faucon2001 » Fri Oct 07, 2016 5:47 pm

I understand but SDL 2.0 is not mandatory for scaling.
You can have scaling with SDL 1.2 if you use a correct frame buffer or if you install a very basic X window environment.
Minibian allows framebuffer scaling on Rapi.
Philippe

Firebee, Falcon, STE, Aranym Box, Hatari Pi Box.
My music http://www.philippeworld.net/
My photography http://phil-67.deviantart.com/
EasyAraMint, BeeKey and BeePi https://sites.google.com/site/emaappsarch/home

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1536
Joined: Sun Jul 31, 2011 1:11 pm

Re: Building Hatari 1.9 w/ SDL2 for raspberry pi

Postby Eero Tamminen » Fri Oct 07, 2016 6:35 pm

Yes, best performance comes if it's the display doing the upscaling.

1 FPS frame rate sounds like SDL problem. Maybe 3D driver (Mesa?) below it uses SW scaling instead of HW acceleration?

Regarding the options mentioned in RetroPie issues... Faster timer-D option works with 99% of the programs, whereas disabling more compatible CPU core works only with ~80% of the programs. (numbers are my own estimates from doing lot of Hatari testing, nothing official :-))

stween
Atarian
Atarian
Posts: 3
Joined: Sat Mar 07, 2015 6:38 am

Re: Building Hatari 1.9 w/ SDL2 for raspberry pi

Postby stween » Sat Oct 08, 2016 4:59 am

Eero Tamminen wrote:1 FPS frame rate sounds like SDL problem. Maybe 3D driver (Mesa?) below it uses SW scaling instead of HW acceleration?

Yes, felt that way to me too! I took another look tonight, and yes, there's an experimental GL driver for the Pi that allows hardware acceleration. That's what was missing! It's buried in raspi-config -> Advanced Options -> GL drivers.

Running 1.9 with SDL2 now, Hatari still seems to need the '--timer-d 1' option to avoid skipping some frames. (But it's not far off otherwise!) This is a good starting point. Thanks!


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 1 guest