Add page support to object pool

This commit is contained in:
2023-12-13 09:31:08 +01:00
parent 72b32b1a26
commit a2c19cf65d
5 changed files with 129 additions and 48 deletions

View File

@@ -42,7 +42,7 @@ BzSpatialGrid *bzSpatialGridCreate(const BzSpatialGridDesc *desc) {
}
grid->entriesPool = bzObjectPoolCreate(&(BzObjectPoolDesc) {
.objectSize=sizeof(BzSpatialGridEntry) + desc->userDataSize,
.numObjects=1024,
.objectsPerPage=1024,
});
return grid;
}