(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).
authorDarkvater
Wed, 17 Jan 2007 23:25:19 +0000
changeset 5720 33faabcca1dd
parent 5719 2bb88fe71d01
child 5721 fa4e587f59f5
(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).
src/spritecache.cpp
--- a/src/spritecache.cpp	Wed Jan 17 22:44:49 2007 +0000
+++ b/src/spritecache.cpp	Wed Jan 17 23:25:19 2007 +0000
@@ -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 {