← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/fh1-multitexture into lp:widelands

 

Gun: please add the comments in the code,
the next reader will not find it here :-)

What I did not get about the cache is:
For every Text (and width) it stores the Image to render it.

So If I open all dialogs in every language one after the other,
the cache will contain all the Images? Will this include
user generated strings as well? Such szenarios could make
the cache explode.

In general such cahes should me somewhat elastic:
* user LRU to drop old, rarely used entries
* reduze size when memory is getting low 
  (e.g. malloc starts to retun null)

Do you have some debugoutput about the size consumptions?
Is there some tescase that switches through all lanaguages 
and open all dialogs?

P.S. I now got a newer, faster mac, but I needed today to migrate everything ...
-- 
https://code.launchpad.net/~widelands-dev/widelands/fh1-multitexture/+merge/323903
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/fh1-multitexture.


References