Main > Raspberry Pi & Dev Board
How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
ZoOl007:
In the mean time I managed to compile an odoid xu4 version using the same methodology as you.
I'm using other archops reflecting my cpu etc.
ARCHOPTS = -mcpu=cortex-a15.cortex-a7 -mtune=cortex-a15.cortex-a7 -mfpu=auto -mfloat-abi=hard -funsafe-math-optimizations -fexpensive-optimizations -fprefetch-loop-arrays
build cmd
make -j $(nproc) CFLAGS="-Wno-error=format-truncation -fPIC" SUBTARGET=arcade OSD=sdl NO_X11=1 NOWERROR=1 NO_USE_XINPUT=1 NO_USE_XINPUT_WII_LIGHTGUN_HACK=1 NO_OPENGL=1 USE_QTDEBUG=0 DEBUG=0 REGENIE=1 NO_BGFX=1
It all checks out but it is extremely slow.
Cabal runs at 16% for example. The mouse barely moves when the qt window is open.
I find it odd. It is just too slow so something must still be wrong. I am thinking that maybe it's not using the gpu but I do not (yet) know how I can check that.
I first made a non optimized version and than the optimized one but both are very very slow.
The board is connected to a 1200*1920 tft at the moment. It is a 32bit cpu so a 32bit os.
I'm using ubuntu-18.04.3-4.14-minimal-odroid-xu4-20190910 atm.
If anyone has an idea (or some test program/code) do share please.
bbegin:
--- Quote from: ZoOl007 on June 02, 2020, 10:32:54 am ---In the mean time I managed to compile an odoid xu4 version using the same methodology as you.
I'm using other archops reflecting my cpu etc.
ARCHOPTS = -mcpu=cortex-a15.cortex-a7 -mtune=cortex-a15.cortex-a7 -mfpu=auto -mfloat-abi=hard -funsafe-math-optimizations -fexpensive-optimizations -fprefetch-loop-arrays
build cmd
make -j $(nproc) CFLAGS="-Wno-error=format-truncation -fPIC" SUBTARGET=arcade OSD=sdl NO_X11=1 NOWERROR=1 NO_USE_XINPUT=1 NO_USE_XINPUT_WII_LIGHTGUN_HACK=1 NO_OPENGL=1 USE_QTDEBUG=0 DEBUG=0 REGENIE=1 NO_BGFX=1
It all checks out but it is extremely slow.
Cabal runs at 16% for example. The mouse barely moves when the qt window is open.
I find it odd. It is just too slow so something must still be wrong. I am thinking that maybe it's not using the gpu but I do not (yet) know how I can check that.
I first made a non optimized version and than the optimized one but both are very very slow.
The board is connected to a 1200*1920 tft at the moment. It is a 32bit cpu so a 32bit os.
I'm using ubuntu-18.04.3-4.14-minimal-odroid-xu4-20190910 atm.
If anyone has an idea (or some test program/code) do share please.
--- End quote ---
Hi ZoOl007,
Did you also compiled SDL2 with the provided build parameters?
Did you forced MAME to use the KMSDRM backend and OpenGL ES rendering engine (start MAME with -videodriver kmsdrm -renderdriver opengles2 -video accel)?
Make sure your user account running MAME is a member of the render group (see my procedure).
You could test if your hardware acceleration is OK with the kmscube test utility (https://gitlab.freedesktop.org/mesa/kmscube/).
bbegin:
Hi all,
Here is a new 4GB image file of the system. Again, without ROMs (just put them in /data/roms) - see the link in the original topic post.
I put the system in Service mode, so you can start with expanding the /data partition and add ROMs with Samba.
To put back in Arcade mode, just issue:
rw
arcademode
sudo reboot
Substring:
Nice !
Have you tried sdl 2.0.12 ?
bbegin:
--- Quote from: Substring on June 03, 2020, 03:10:58 am ---Nice !
Have you tried sdl 2.0.12 ?
--- End quote ---
Thanks!
FYI, we need to build SDL 2.0.10, not 2.0.12 (as stated in the How-to Guide, there is a bug with version 2.0.11 and up, so we should stay at 2.0.10 until the bug is fixed).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version