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:
Ykkrosh
2011-03-30 21:42:35 +00:00
parent 98fa860199
commit 1014da1f88
4 changed files with 106 additions and 21 deletions
+5
View File
@@ -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;
}