summaryrefslogtreecommitdiff
path: root/newgrf_spritegroup.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-02 18:56:03 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-02 18:56:03 +0000
commit3d32fd3f4bfaceb8a48530fbc2f4bd5db2752596 (patch)
tree299347c14119906eedfbe68199622749f13b3686 /newgrf_spritegroup.c
parentffe5bb671e27c2314e10283a23537ed8384be686 (diff)
downloadopenttd-3d32fd3f4bfaceb8a48530fbc2f4bd5db2752596.tar.xz
(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.
Diffstat (limited to 'newgrf_spritegroup.c')
-rw-r--r--newgrf_spritegroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_spritegroup.c b/newgrf_spritegroup.c
index ef2ca9091..f97da9c90 100644
--- a/newgrf_spritegroup.c
+++ b/newgrf_spritegroup.c
@@ -11,7 +11,7 @@
static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
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)
{