increase upsize to 1024
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user