From a7d03deba649cef927a9f67034a0b36d652de469 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Tue, 25 Nov 2025 23:21:01 +0100 Subject: [PATCH] temp fix --- src/main.c | 7 +------ src/world/scene.c | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index bd9cf47..5e12e5c 100644 --- a/src/main.c +++ b/src/main.c @@ -780,11 +780,7 @@ void updatePolycubeDisplay(Arena *arena, Soma *soma) { void createSolutionEntities(Arena *arena, Soma *soma) { if (soma->solutions.length > 0) { - if (soma->solutionEntities.capacity === 0) { - soma->solutionEntities = PushList(arena, HandleList, soma->solutions.length); - } else { - ZeroList(&soma->solutionEntities); - } + soma->solutionEntities = PushList(arena, HandleList, soma->solutions.length); for (EachEl(soma->solutions, SomaSolution, solution)) { uint32 solutionGraphNodeHandle = createSceneGraphNode(soma->scene); AppendList(&soma->solutionEntities, solutionGraphNodeHandle); @@ -839,7 +835,6 @@ int mainGfx() { .renderer = &renderer, .polycubeInput = PushListZero(arena, PolycubeInputList, 64), .polycubes = PushListZero(arena, HandleList, 64), - .solutionEntities = EmptyList(), .puzzleDims = {3, 3, 3}, .solveTaskCtx = (SolveTaskCtx){ .arena = arenaAlloc(Megabytes(128)), diff --git a/src/world/scene.c b/src/world/scene.c index 1f7e815..d7d0044 100644 --- a/src/world/scene.c +++ b/src/world/scene.c @@ -56,8 +56,8 @@ void recalcGraphNode(SceneGraphNode *n) { Scene createScene(Arena *arena) { Scene result = { .arena = arena, - .entities = PushList(arena, EntityList, 4096), - .graphNodes = PushList(arena, SceneGraphNodeList, 8192), + .entities = PushList(arena, EntityList, 100000), + .graphNodes = PushList(arena, SceneGraphNodeList, 100000), }; result.sceneRoot = createSceneGraphNode(&result); return result;