mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 03:12:19 +00:00
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