diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-05 10:40:29 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-05 10:40:29 +0000 |
commit | 4403d41934ea81539bed5563bcb6b38d010a9298 (patch) | |
tree | 35234aabb3c2540a8abe8e2bb0f518931118a04c /src/spritecache.h | |
parent | 959eaae6a41bdf854a74386912181f41c1df7b3e (diff) | |
download | openttd-4403d41934ea81539bed5563bcb6b38d010a9298.tar.xz |
(svn r10042) -Codechange: Replace hardcoded spritecache size with a configuration
option, sprite_cache_size. The default size is 2MB and the value can
range from 1 to 64MB. If you experience slow-downs when scrolling the
map, try increasing this setting.
Diffstat (limited to 'src/spritecache.h')
-rw-r--r-- | src/spritecache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/spritecache.h b/src/spritecache.h index 747fbdecb..c979b73c5 100644 --- a/src/spritecache.h +++ b/src/spritecache.h @@ -14,6 +14,8 @@ struct Sprite { byte data[VARARRAY_SIZE]; }; +extern uint _sprite_cache_size; + const void *GetRawSprite(SpriteID sprite); bool SpriteExists(SpriteID sprite); |