-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL2 | Port emulator to SDL2 #8
Comments
Note: Guichan is outdated, no longer updated and does not play well with SDL2. |
The SDL2 packages available from the Jessie repository require/expect a X-environment and do not open a window from the console. Will try compiling SDL2 from source with explicitly defining what features should be enabled/disabled, as mentioned here: https://solarianprogrammer.com/2015/01/22/raspberry-pi-raspbian-getting-started-sdl-2/ |
Confirmed, compiling SDL2 from source and defining the necessary options seems to produce a version that works without X11. |
Note: Do NOT enable the experimental OpenGL driver on Raspbian. It breaks things like DispmanX and SDL2 without X11. |
I ran into similar issues when compiling DXX-rebirth for RPi. I wanted to support both FBdev and OpenGL for RPi. Might be worth a shot at compiling with |
I tried compiling SDL2 with --disable-video-opengl but if the OpenGL driver is enabled, my applications don't start (no display is initialized). If I disable the OpenGL driver, they work again. The same happens with any apps using DispManX directly, they fail when the OpenGL driver is enabled, work when it's not. |
UAE's GUI is now working under SDL2, except one glitch in the Configurations list (only one entry appears, with a larger than normal row height). This needs to be fixed in the original Guichan (now Guisan) code that calculates the row height and list items there. The emulation screen is not working correctly yet, needs more time to fix. It actually opens a screen 4 times larger than what was expected, with incorrect colors (maybe RGB format issue?) and it's very slow. |
Note to self: the graphics corruption issue is related to the RGB format used (if it's 32-bit) in combination with the Pandora "copy to 16 bit" routines, located in picasso96.cpp. Investigate if those are really needed on the Pi and take them away if they are not. |
Graphics corruption issue is now fixed. |
The emulator currently uses SDL1 internally, for input events, graphics drawing (combined with DispManX), audio and joystick support.
We should move it to SDL2 which provides a more modern approach, hardware acceleration and enhanced joystick input features.
The text was updated successfully, but these errors were encountered: