I'm new to the forum, but been using the emulators for years. I'm sure there are a few out there with similar setups to me: A series of Raspberry Pis, all running various iterations of retro games, including our favourites from the that time when the mac was a serious gaming machine (Maybe it will happen again with the M1s - I guess we will see).
Back to the reason for the post: I was very disappointed with the performance of BasiliskII on the pi4 (compared to the pi3). It took me some time to work it out, but essentially the graphics drivers are only optimised to function when running X. After a lot of playing with various settings, I have managed to achieve a satisfactory setup by creating custom .xinitrc for each env (BasiliskII, SheepShaver).
I typical xinit script looks something like this - save the file in something like startbasilisk in your home dir
Code: Select all
#!/bin/sh
xrandr --output HDMI-1 --mode 800x600 --panning 800x600 --transform 1.33333333,0,-125,0,1,0,0,0,1
exec sudo -E /home/pi/macemu/BasiliskII/src/Unix/BasiliskII
The first line sets the X resolution to 800x600, and transforms the image adding borders left and right to stop the image being stretched across the screen (maybe you prefer stretched - it which case you can omit this, or simply set the resolution - something like xrandr -s 800x600. sudo is only required for sheep_net. We could change the ownership of the sheep_net.. but that still requires sudo in the script, so I'm not sure how much we save.
My script to launch:
Code: Select all
sudo modprobe sheep_net
startx /home/pi/startbasilisk