Supertuxkart on Raspberry Pi

Supertuxkart on Raspberry Pi

Postby deve » 17 Oct 2017, 23:22

I think that current git version should work on Raspberry Pi.

One thing that I'm not sure is if creating GLES context using EGL is enough to get hardware acceleration on RPi. It's probably true for vc4 driver, but I have no idea what about the proprietary one. Last time when I made something hardware-accelerated for RPi, I was using SDL2 configured with GLES+DirectFB. So I'm not sure if it will work with X11, or maybe DirectFB is needed.

And second thing is that I'm not sure if STK will automatically fallback to legacy device (OpenGL ES 2.0), or maybe it will try to use GLES 3.0. AFAIK the Raspberry Pi GPU is only GLES 2.0, but I remember that glxinfo was reporting GLES 3.0 for me... So if it will try to use GLES 3.0, then we need to add ForceLegacyDevice in graphical_restrictions.xml.

It would be nice if someone could test it, because currently I don't have access to any RPi device. And I can make some fixes before the 0.9.3 release. To enable GLES renderer in STK, you have to compile it with:

cmake .. -DUSE_GLES2=1
deve
 
Posts: 193
Joined: 23 Jan 2014, 13:45

Re: Supertuxkart on Raspberry Pi

Postby deve » 18 Oct 2017, 20:27

Ok, someone confirmed that it works on RPi. Only max texture size had to be set to lower value to make it working. And it gives ~30 fps for Cornfield Crossing in 1280x720 with Raspberry Pi 3, so it's not that bad :) Here is a video with Scotland track:
https://www.youtube.com/watch?v=fPd2G_q ... e=youtu.be

And old proprietary driver hasn't been tested, but I suppose that it won't work with X11 anyway.
deve
 
Posts: 193
Joined: 23 Jan 2014, 13:45

Who is online

Users browsing this forum: No registered users and 1 guest