Re: [tsc-devel] Keeping the cache on the rewrite?

Marvin Gülker | Thu, 04 Aug 2016 08:09:18 UTC

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.

> BR,
> xet7

Vale,
Quintus

-- 
Blog: http://www.guelkerdev.de
PGP/GPG ID: F1D8799FBCC8BC4F

By Thread
2016-08-03 16:42:23Marvin Gülker[tsc-devel] Keeping the cache on the rewrite?
2016-08-03 21:51:43Lauri OjansivuRe: [tsc-devel] Keeping the cache on the rewrite?
2016-08-04 08:09:18Marvin GülkerRe: [tsc-devel] Keeping the cache on the rewrite?
By Date
[tsc-devel] Keeping the cache on the rewrite?Marvin Gülker2016-08-03 16:42:23
Re: [tsc-devel] Keeping the cache on the rewrite?Lauri Ojansivu2016-08-03 21:51:43
Re: [tsc-devel] Keeping the cache on the rewrite?Marvin Gülker2016-08-04 08:09:18