temp fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
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)),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user