mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r7758) -Codechange: Change SpriteGroup pool allocation from 16 items to 512 items at a time, as with a few sets loaded there can easily be 10,000+ items in the pool.
This commit is contained in:
parent
ffe5bb671e
commit
3d32fd3f4b
@ -11,7 +11,7 @@
|
|||||||
static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
|
static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
|
||||||
|
|
||||||
static uint _spritegroup_count = 0;
|
static uint _spritegroup_count = 0;
|
||||||
STATIC_OLD_POOL(SpriteGroup, SpriteGroup, 4, 8000, NULL, SpriteGroupPoolCleanBlock)
|
STATIC_OLD_POOL(SpriteGroup, SpriteGroup, 9, 250, NULL, SpriteGroupPoolCleanBlock)
|
||||||
|
|
||||||
static void DestroySpriteGroup(SpriteGroup *group)
|
static void DestroySpriteGroup(SpriteGroup *group)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user