mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
* Add support for RPI4 and generic KMS targets * Allow configuration of rpi3 platform in favour of rpi2 platform * Move build configuration into separate function to avoid duplication between build and install functions. * avoid duplication of addEmulator definitions due to audio backend options * Set alsa as default audio backend for mesa (omx doesn't work, and oss backend via aoss causes emulator stuttering). Patch details (may be removed after upstream is fixed): * Add SDL/gles2 sub-platform for rpi4 to allow kmsdrm compatibility * Ensure vsync is enforced for SDL, otherwise KMSDRM will run at unlocked framerate. * Fix signal handler conflict by disabling SDL2's exit signal handler, and ensuring that reicast gracefully cleans up by stopping emulation and invoking SDL_Quit() during exit.
13 lines
321 B
Diff
13 lines
321 B
Diff
diff --git a/core/sdl/sdl.cpp b/core/sdl/sdl.cpp
|
|
index 6dc0eea..c161fa1 100644
|
|
--- a/core/sdl/sdl.cpp
|
|
+++ b/core/sdl/sdl.cpp
|
|
@@ -272,6 +272,8 @@ void sdl_window_create()
|
|
bool gl_init(void* wind, void* disp)
|
|
{
|
|
SDL_GL_MakeCurrent(window, glcontext);
|
|
+ SDL_GL_SetSwapInterval(1);
|
|
+
|
|
#ifdef GLES
|
|
return true;
|
|
#else
|