shithub: cstory

Download patch

ref: 99a8b2bd188aa14ab817dbe59546ce8c5cdcef03
parent: 517824216e5286da0b734da60a0905f1eef24d5e
author: Clownacy <[email protected]>
date: Sat Jan 25 09:22:50 EST 2020

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).

--- 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