Add page support to object pool
This commit is contained in:
@@ -42,7 +42,7 @@ BzSpatialGrid *bzSpatialGridCreate(const BzSpatialGridDesc *desc) {
|
||||
}
|
||||
grid->entriesPool = bzObjectPoolCreate(&(BzObjectPoolDesc) {
|
||||
.objectSize=sizeof(BzSpatialGridEntry) + desc->userDataSize,
|
||||
.numObjects=1024,
|
||||
.objectsPerPage=1024,
|
||||
});
|
||||
return grid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user