From 154b9c1c913ee04b603989db8664481d4df1aaee Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 20 Jun 2022 21:56:26 -0700 Subject: 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. --- drivers/gles3/storage/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gles3/storage/config.h') 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; -- cgit v1.2.3