corewall / corelyzer

The Corelyzer Core Visualization Tool
http://corewall.org
13 stars 6 forks source link

Windows: cached images are sometimes reprocessed for no apparent reason #43

Open sorghumking opened 5 months ago

sorghumking commented 5 months ago

This is a long-standing, extremely slippery issue that's exclusive to Windows.

The first time core images are loaded, they're processed into S3TC tiles at various zoom levels for use in the software. This can be quite slow, especially with many images. Thus the processed data are cached in Corelyzer's cache directory, which load very quickly in comparison.

However, sometimes Windows re-processes images that are already cached. I say "sometimes" because this behavior is difficult to consistently reproduce. Sometimes it happens, sometimes it doesn't. Attempts to reproduce the behavior in a Debug build have failed.

This is a serious problem for very large projects, which can take 30+ minutes to load if the cache is unused.

sorghumking commented 5 months ago

Commit 9a510a7 is an attempt to fix this bug that shows some promise.