[tsc-devel] Image cache really necessary?

Marvin Gülker | Fri, 05 Jul 2019 16:44:13 UTC

Hi everyone,

I was taking a look at ticket #560 and the related ticket #489. While
thinking about it, I came to ask myself why TSC even has this image
cache functionality. After all the years I work with the TSC codebase, I
still honestly don't know why it exists. So, does anybody have an idea?
If not, is anybody inherently against removing the image cache?

My only guess for the image cache is that we have some high-resolution
images in our pixmaps directory. These images maybe once caused problems
when loaded as a texture directly. Given the code's age I doubt that
this causes any problems anymore, and the image cache generation is an
annoyance every user of TSC has experienced. Removing it would not only
make TSC's startup faster, but also fix all problems with the cache
going out of sync (and making #560 obsolete -- the ticket describes a
problem in messing with raw pixels in Downscale_Image(), which looks
like a rather complex problem).

To give you some data: our largest pixmaps are some level background
images with a width of 4096 pixels,
e.g. game/background/beach_island.png and
game/background/puffy_clouds.png. 4096 pixels sounds like a reasonable
size to expect from graphics hardware today;
sf::Texture::getMaximumSize() returns a value over 8000 for my aged
laptop.

Thoughts?

  -quintus

-- 
Blog: https://mg.guelker.eu
_______________________________________________
tsc-devel mailing list -- …l@l…
To unsubscribe send an email to …e@l…
By Thread
2019-07-05 16:44:13Marvin Gülker[tsc-devel] Image cache really necessary?
2019-07-06 05:29:01Ryan Gonzalez[tsc-devel] Re: Image cache really necessary?
2019-07-13 13:41:49Marvin Gülker[tsc-devel] Re: Image cache really necessary?
2019-07-14 11:13:22…x@x…[tsc-devel] Re: Image cache really necessary?
2019-07-14 12:39:00Marvin Gülker[tsc-devel] Re: Image cache really necessary?
2019-07-14 12:55:32Lauri Ojansivu[tsc-devel] Re: Image cache really necessary?
2019-07-14 14:57:58Marvin Gülker[tsc-devel] Re: Image cache really necessary?
2019-07-18 02:03:41Luiji MaryoRe: [tsc-devel] Re: Image cache really necessary?
2019-07-25 20:05:34Marvin Gülker[tsc-devel] Fwd: Re: Re: Image cache really necessary?
By Date
[tsc-devel] Image cache really necessary?Marvin Gülker2019-07-05 16:44:13
[tsc-devel] Re: Image cache really necessary?Ryan Gonzalez2019-07-06 05:29:01
[tsc-devel] Re: Image cache really necessary?Marvin Gülker2019-07-13 13:41:49
[tsc-devel] Re: Image cache really necessary?…x@x…2019-07-14 11:13:22
[tsc-devel] Re: Image cache really necessary?Marvin Gülker2019-07-14 12:39:00
[tsc-devel] Re: Image cache really necessary?Lauri Ojansivu2019-07-14 12:55:32
[tsc-devel] Re: Image cache really necessary?Marvin Gülker2019-07-14 14:57:58
Re: [tsc-devel] Re: Image cache really necessary?Luiji Maryo2019-07-18 02:03:41
[tsc-devel] Fwd: Re: Re: Image cache really necessary?Marvin Gülker2019-07-25 20:05:34