Author: alink
Date: Mon Jun 23 00:37:58 2008
New Revision: 27421
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27421&view=rev
Log:
Change cache size from 600 to 2000 because it really slowed loading and
scrolling (on test-scenario scrolling was always loading png files from disk)
A better solution will be to use different cache sizes but better wait to
polish the implementation before fine tuning these values.
PS: and in the mean time let's trunk be fast ;)
Modified:
trunk/src/image.hpp
Modified: trunk/src/image.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/image.hpp?rev=27421&r1=27420&r2=27421&view=diff
==============================================================================
--- trunk/src/image.hpp (original)
+++ trunk/src/image.hpp Mon Jun 23 00:37:58 2008
@@ -55,7 +55,7 @@
class cache_type
{
public:
- cache_type():cache_size(0),cache_max_size(600){}
+ cache_type():cache_size(0),cache_max_size(2000){}
cache_item<T>& get_element(int index);
void on_load(int index);
void flush();
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits