changeset 5720:3b0fb1e298cc draft

(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).
author Darkvater <Darkvater@openttd.org>
date Wed, 17 Jan 2007 23:25:19 +0000
parents 16309367ff75
children 06a31b083e84
files src/spritecache.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {