From d723c7d9dfa775ba4e0e1696d7dbe2077b174d6c Mon Sep 17 00:00:00 2001 From: Alec Murphy Date: Sun, 20 Apr 2025 10:09:58 -0400 Subject: [PATCH] System/FFI/TrueType: Reduce memory pool size from 32MB to 8MB The maximum allocated memory by stbtt_RenderText() has never exceeded 2MB during testing. 8MB ought to be enough for anybody :^) --- System/FFI/TrueType.HC | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/FFI/TrueType.HC b/System/FFI/TrueType.HC index 46a90d5..f3d81ec 100644 --- a/System/FFI/TrueType.HC +++ b/System/FFI/TrueType.HC @@ -1,4 +1,4 @@ -U64 stbtt_heap = MAlloc(1048576 * 32); +U64 stbtt_heap = MAlloc(1024 << 13); U64 stbtt_pos = 0; U64 @stbtt_malloc(I64 size)