forked from mirrors/0ad
Use pool allocator to avoid apparently expensive dynamic allocations when rendering terrain.
Add function to get pool usage, for debugging. This was SVN commit r9132.
This commit is contained in:
@@ -119,3 +119,8 @@ void pool_free_all(Pool* p)
|
||||
|
||||
da_set_size(&p->da, 0);
|
||||
}
|
||||
|
||||
size_t pool_committed(Pool* p)
|
||||
{
|
||||
return p->da.cur_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user