summaryrefslogtreecommitdiffstats
path: root/drivers/gles3/storage/config.h
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2022-06-20 21:56:26 -0700
committerclayjohn <claynjohn@gmail.com>2022-10-06 11:24:45 -0700
commit154b9c1c913ee04b603989db8664481d4df1aaee (patch)
tree6cc754761fb942a4931b63e052c583cfd951b112 /drivers/gles3/storage/config.h
parent0c23a2cfe3ad897e1e49008629c135764b2c155c (diff)
downloadredot-engine-154b9c1c913ee04b603989db8664481d4df1aaee.tar.gz
Use a giant UBO to optimize performance in 2D
This removes the countless small UBO writes we had before and replaces them with a single large write per render pass. This results in much faster rendering on low-end devices but improves speed on all devices.
Diffstat (limited to 'drivers/gles3/storage/config.h')
-rw-r--r--drivers/gles3/storage/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles3/storage/config.h b/drivers/gles3/storage/config.h
index b83c83f425..fe18345775 100644
--- a/drivers/gles3/storage/config.h
+++ b/drivers/gles3/storage/config.h
@@ -64,6 +64,8 @@ public:
int max_renderable_lights = 0;
int max_lights_per_object = 0;
+ int uniform_buffer_offset_alignment = 0;
+
// TODO implement wireframe in OpenGL
// bool generate_wireframes;