From e220d3228f48d4cb3256b398b45b40bf6892e550 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Oct 2013 18:18:13 +0000 Subject: add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space. --- source/blender/blenlib/BLI_scanfill.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_scanfill.h') diff --git a/source/blender/blenlib/BLI_scanfill.h b/source/blender/blenlib/BLI_scanfill.h index e7d2130e473..52f5decb4f4 100644 --- a/source/blender/blenlib/BLI_scanfill.h +++ b/source/blender/blenlib/BLI_scanfill.h @@ -51,7 +51,7 @@ typedef struct ScanFillContext { struct MemArena *arena; } ScanFillContext; -#define BLI_SCANFILL_ARENA_SIZE 16384 +#define BLI_SCANFILL_ARENA_SIZE MEM_SIZE_OPTIMAL(1 << 14) typedef struct ScanFillVert { struct ScanFillVert *next, *prev; -- cgit v1.2.3