I'm working on a framework to make some simple games for my 2.5 year old on RPi 3B. Using SDL2 for sprites and sound. My confusion arises from very poor performance of supposedly hardware-accelerated 2d drawing of even a few dozen textures on the screen. Am I really using hardware acceleration? SDL says I do.
Not using X11 or any desktop environment. All command line.
I'm totally confused by Raspberry Pi video driver architecture / stack.
I would be very grateful for any comments that enhance my understanding of this. Here's what I know / surmise:
* RPi uses Broadcom video chip called VideoCore4.
* There's some sort of built in driver for it (default), then there are two experimental "full kms" and "fake kms" desktop drivers that can be enabled from raspi-config tool. But both break boot process with errors for me, and can make system inaccessible. But these are only for X11 / desktop, right?
* When I'm compiling an SDL application, and dynamically linking to GLESv2 library - the produced binary links to whatever implementation of OpenGL is installed into /usr/lib or whatever - the one bundled with Raspbian is Mesa, right? How do I know if this is hardware accelerated or not?
Any insight into this would be helpful. Thank you.