summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-17 23:25:19 +0000
committerDarkvater <darkvater@openttd.org>2007-01-17 23:25:19 +0000
commit653290c76ab322dc4d192e26cd2502aa2ea284dd (patch)
treed05f41592cc2c56f0edd4608001a5a86ca2fc1b4 /src
parent652b804a9eaa18fba486aa8ca7a86472dff81efd (diff)
downloadopenttd-653290c76ab322dc4d192e26cd2502aa2ea284dd.tar.xz
(svn r8218) -Codechange: Increase spritecache size to 2MB. This will vastly improve performance when using (lots of) grf files. You can change it yourself easily with the SPRITE_CACHE_SIZE compile flag. (peter1138).
Diffstat (limited to 'src')
-rw-r--r--src/spritecache.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp
index 3c6aef018..195de14bb 100644
--- a/src/spritecache.cpp
+++ b/src/spritecache.cpp
@@ -10,7 +10,9 @@
#include "fileio.h"
#include "helpers.hpp"
-#define SPRITE_CACHE_SIZE 1024*1024
+#ifndef SPRITE_CACHE_SIZE
+# define SPRITE_CACHE_SIZE 2*1024*1024
+#endif /* SPRITE_CACHE_SIZE */
typedef struct SpriteCache {