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:
parent
6ed2269ff8
commit
c68154130f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue