From 99a8b2bd188aa14ab817dbe59546ce8c5cdcef03 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 25 Jan 2020 14:22:50 +0000 Subject: [PATCH] Improve OpenGL performance on the Raspberry Pi Apparently 2 VBOs wasn't enough. This bumped the framerate from 13FPS to 20FPS in a stress-test (CSE2E at 1704x960 on a Raspberry Pi 3B in X11 with the KMS OpenGL driver). --- src/Backends/Rendering/OpenGL3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/Rendering/OpenGL3.cpp b/src/Backends/Rendering/OpenGL3.cpp index 6024ecb3..295497f2 100644 --- a/src/Backends/Rendering/OpenGL3.cpp +++ b/src/Backends/Rendering/OpenGL3.cpp @@ -19,7 +19,7 @@ #include "../../Resource.h" -#define TOTAL_VBOS 2 +#define TOTAL_VBOS 8 #define ATTRIBUTE_INPUT_VERTEX_COORDINATES 1 #define ATTRIBUTE_INPUT_TEXTURE_COORDINATES 2