seanshpark / AppleWinLinux

Apple II emulator for Linux
GNU General Public License v2.0
1 stars 0 forks source link

Run in Raspberry Pi 1 #2

Open seanshpark opened 7 months ago

seanshpark commented 7 months ago

Build

cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_QAPPLE=OFF -DBUILD_LIBRETRO=OFF \
../AppleWinLinux/

It's tooooo slow running in Raspberry Pi 1 (running in 900MHz)

To find a way to run at least with some response.

As of now

sa2_load.sh

sa2_run.sh

seanshpark commented 7 months ago

1/ Set refresh rate to 20

2/ Current option that seems to run, with mouse movement in Imgui

./sa2 \
  --sdl-driver 1 \
  --geometry 640x480 \
  --no-audio \
  --fixed-speed
seanshpark commented 7 months ago

Settings

seanshpark commented 7 months ago

with --timer option

seanshpark commented 7 months ago

Refresh to default 60Hz

to 30Hz

seanshpark commented 7 months ago

Run with --benchmark option with some changes

regs.pc: 366
Pure Video FPS: 20
Pure CPU MHz:   0.6 (video update)
Pure CPU MHz:   11.9 (full-speed)

EXPECTED AVERAGE VIDEO GAME
PERFORMANCE: 11 FPS
seanshpark commented 7 months ago
add_compile_options(-march=armv6+vfpv2 -mfloat-abi=hard)

-->

regs.pc: 314
Pure Video FPS: 19
Pure CPU MHz:   0.7 (video update)
Pure CPU MHz:   12.0 (full-speed)

EXPECTED AVERAGE VIDEO GAME
PERFORMANCE: 12 FPS

but not much difference

seanshpark commented 7 months ago

Benchmark with --no-imgui

regs.pc: 30a
Pure Video FPS: 36
Pure CPU MHz:   1.1 (video update)
Pure CPU MHz:   21.9 (full-speed)

EXPECTED AVERAGE VIDEO GAME
PERFORMANCE: 23 FPS
seanshpark commented 7 months ago

Use OpenGL

./sa2 \
    --sdl-driver 0 --geometry 640x400 \
    --fixed-speed --aspect-ratio --no-audio --timer --no-imgui \
    --benchmark
regs.pc: 30a
Pure Video FPS: 25
Pure CPU MHz:   1.2 (video update)
Pure CPU MHz:   21.9 (full-speed)

EXPECTED AVERAGE VIDEO GAME
PERFORMANCE: 18 FPS

Use OpenGLES2

./sa2 \
    --sdl-driver 1 --geometry 640x400 \
    --fixed-speed --aspect-ratio --no-audio --timer --no-imgui \
    --benchmark
regs.pc: 314
Pure Video FPS: 35
Pure CPU MHz:   1.2 (video update)
Pure CPU MHz:   21.6 (full-speed)

EXPECTED AVERAGE VIDEO GAME
PERFORMANCE: 23 FPS