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 ;)
This commit is contained in:
Ali El Gariani 2008-06-22 22:37:58 +00:00
parent 6ed2269ff8
commit c68154130f

View file

@ -55,7 +55,7 @@ namespace image {
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();