From b0ca03b0a24116976e0859d7766e2ca5eb18cb88 Mon Sep 17 00:00:00 2001 From: reduz Date: Sun, 6 Mar 2022 12:57:09 +0100 Subject: Add a UniformSet cache * Changed syntax usage for RD::Uniform to create faster with a single RID * Converted render pass setup to use this in clustered renderer to test. This is the first step into creating a proper uniform set cache system to simplify large parts of the codebase. --- core/templates/paged_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/templates') diff --git a/core/templates/paged_allocator.h b/core/templates/paged_allocator.h index 5bc723787f..b9067e2edd 100644 --- a/core/templates/paged_allocator.h +++ b/core/templates/paged_allocator.h @@ -86,10 +86,10 @@ public: } p_mem->~T(); available_pool[allocs_available >> page_shift][allocs_available & page_mask] = p_mem; + allocs_available++; if (thread_safe) { spin_lock.unlock(); } - allocs_available++; } void reset(bool p_allow_unfreed = false) { -- cgit v1.2.3