summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-05 10:40:29 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-05 10:40:29 +0000
commit4403d41934ea81539bed5563bcb6b38d010a9298 (patch)
tree35234aabb3c2540a8abe8e2bb0f518931118a04c /src/settings.cpp
parent959eaae6a41bdf854a74386912181f41c1df7b3e (diff)
downloadopenttd-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/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index ea4e289fb..01065f4eb 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -46,6 +46,7 @@
#include "gfx.h"
#include "fontcache.h"
#endif
+#include "spritecache.h"
/** The patch values that are used for new games and/or modified in config file */
Patches _patches_newgame;
@@ -1257,6 +1258,7 @@ static const SettingDescGlobVarList _misc_settings[] = {
SDTG_VAR("medium_size", SLE_UINT, S, 0, _freetype.medium_size, 10, 0, 72, 0, STR_NULL, NULL),
SDTG_VAR("large_size", SLE_UINT, S, 0, _freetype.large_size, 16, 0, 72, 0, STR_NULL, NULL),
#endif
+ SDTG_VAR("sprite_cache_size",SLE_UINT, S, 0, _sprite_cache_size, 2, 1, 64, 0, STR_NULL, NULL),
SDTG_END()
};