09-25-2019, 06:13 AM
Hi Richard!
I was aware of the issues regarding performance on the RPi with SDL2. If I remember correctly, the default pre-packaged SDL2 is compiled without OpenGL/ES support, that's what the proprietary graphics driver of the RPi supports. Then, the driver reverts to software-based OpenGL emulation, causing the slow rendering. There are two solutions:
Thanks for pointing this!
I was aware of the issues regarding performance on the RPi with SDL2. If I remember correctly, the default pre-packaged SDL2 is compiled without OpenGL/ES support, that's what the proprietary graphics driver of the RPi supports. Then, the driver reverts to software-based OpenGL emulation, causing the slow rendering. There are two solutions:
- Build SDL2 from source, enabling the switch to support OpenGL/ES that's not enabled by default
- Use raspi-config to choose the graphics driver to "Experimental OpenGL", that brings hardware acceleration to standard desktop OpenGL.
Thanks for pointing this!