From 64c925cca6d5c54b0ef4dd0bcdd7a4357f4b86fb Mon Sep 17 00:00:00 2001 From: reduz Date: Tue, 29 Jun 2021 10:58:28 -0300 Subject: Improve RID_Owner memory usage * Ability to allocate empty objects in RID_Owner, so RID_PtrOwner is not needed in most cases. * Improves cache usage, as objects are now allocated together * Should improve performance in 2D rendering --- servers/rendering/renderer_viewport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/rendering/renderer_viewport.h') diff --git a/servers/rendering/renderer_viewport.h b/servers/rendering/renderer_viewport.h index ffda9ad8f0..8fedf32c04 100644 --- a/servers/rendering/renderer_viewport.h +++ b/servers/rendering/renderer_viewport.h @@ -172,7 +172,7 @@ public: uint64_t draw_viewports_pass = 0; - mutable RID_PtrOwner viewport_owner; + mutable RID_Owner viewport_owner; struct ViewportSort { _FORCE_INLINE_ bool operator()(const Viewport *p_left, const Viewport *p_right) const { -- cgit v1.2.3