Only block EGL rendering on Pi 4 and earlier

Hopefully Pi 5 is powerful enough to at least render 1080p 60 FPS.
This commit is contained in:
Cameron Gutman
2023-10-08 16:16:33 -05:00
parent 0ff9f8c55a
commit 7e4fddbe62
2 changed files with 34 additions and 11 deletions

View File

@@ -990,17 +990,6 @@ bool EGLRenderer::testRenderFrame(AVFrame* frame)
{
EGLImage imgs[EGL_MAX_PLANES];
#ifdef HAVE_MMAL
// EGL rendering is so slow on the Raspberry Pi that we should basically
// never use it. It is suitable for 1080p 30 FPS on a good day, and much
// much less than that if you decide to do something crazy like stream
// in full-screen. It's nice that it at least works now on Bullseye, but
// it's so slow that we actually wish it didn't.
if (qgetenv("RPI_ALLOW_EGL_RENDER") != "1") {
return false;
}
#endif
// Make sure we can get working EGLImages from the backend renderer.
// Some devices (Raspberry Pi) will happily decode into DRM formats that
// its own GL implementation won't accept in eglCreateImage().