From de7e370240717446d462ee2057966893d3b5b8a6 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 5 Jun 2007 10:40:29 +0000 Subject: (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. --- src/settings.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/settings.cpp') 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() }; -- cgit v1.2.3-54-g00ecf