increase upsize to 1024

This commit is contained in:
mcrcortex
2025-09-14 18:51:05 +10:00
parent 1b023f859b
commit 465a55a77e

View File

@@ -108,7 +108,7 @@ public class BasicAsyncGeometryManager implements IGeometryManager {
if ((section.geometryBuffer.size%GEOMETRY_ELEMENT_SIZE)!=0) throw new IllegalStateException(); if ((section.geometryBuffer.size%GEOMETRY_ELEMENT_SIZE)!=0) throw new IllegalStateException();
int size = (int) (section.geometryBuffer.size/GEOMETRY_ELEMENT_SIZE); int size = (int) (section.geometryBuffer.size/GEOMETRY_ELEMENT_SIZE);
//clamp size upwards //clamp size upwards
int upsized = (size+511)&~511; int upsized = (size+1023)&~1023;
//Address //Address
int addr = (int)this.allocationHeap.alloc(upsized); int addr = (int)this.allocationHeap.alloc(upsized);
if (addr == -1) { if (addr == -1) {