From f905b4013b06ce91e18a856ffc42e1ba7b8a79e3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 27 Apr 2026 14:26:12 +0200 Subject: [PATCH] Optimize large scene files loading by aligning json pool allocator pages to 64kB --- Source/Engine/Serialization/Json.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Engine/Serialization/Json.h b/Source/Engine/Serialization/Json.h index 692c42bc7..a87c58501 100644 --- a/Source/Engine/Serialization/Json.h +++ b/Source/Engine/Serialization/Json.h @@ -24,6 +24,7 @@ //#define RAPIDJSON_MALLOC(size) ::malloc(size) //#define RAPIDJSON_REALLOC(ptr, new_size) ::realloc(ptr, new_size) //#define RAPIDJSON_FREE(ptr) ::free(ptr) +#define RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY 65511 // Keep it smaller than default so it fits 64kB alloc INCLUDING headers/chunks from MemoryPoolAllocator #include #include