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. --- servers/rendering/renderer_compositor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'servers/rendering/renderer_compositor.h') diff --git a/servers/rendering/renderer_compositor.h b/servers/rendering/renderer_compositor.h index 8e04191e35..169988f72c 100644 --- a/servers/rendering/renderer_compositor.h +++ b/servers/rendering/renderer_compositor.h @@ -102,6 +102,7 @@ public: virtual void finalize() = 0; virtual uint64_t get_frame_number() const = 0; virtual double get_frame_delta_time() const = 0; + virtual double get_total_time() const = 0; static bool is_low_end() { return low_end; }; virtual bool is_xr_enabled() const; -- cgit v1.2.3