On Thu, Aug 04, 2016 at 12:51:43AM +0300, Lauri Ojansivu wrote:
Why image cache is there in current devel version?
As far as I understand it, the image cache is there to relax the
requirements of scaling the graphics at runtime. I.e. instead of having
to resize an image from the full SVG export size, it is pre-resized for
the target resolution to save a little bit of computing time and thus
improve performance. I however have some doubts as to whether this
really results in a noticable performance difference.
This is only my naïve interpretation of it, though. There might be other
reasons behind the cache.
Could it be removed now, is it needed for anything?
Removing it would require some deep changes to the game, thus I don't
think that its worth to do it in the 2.x series. For the 3.x series, I
want to discuss not using a cache, though.
Note that in 2.x you can manually disable the cache by adjusting a
hidden option in the configuration file ("image_cache_enabled" off the
top of my head, might be named a little different). I haven't tested
this in a long time, though.
PGP/GPG ID: F1D8799FBCC8BC4F