blub icon indicating copy to clipboard operation
blub copied to clipboard

unified cache folder

Open Wumpf opened this issue 4 years ago • 0 comments

There's plenty of data that wants caching for fast startup (and thus fast iteration!) Should introduce a more intelligent/unified caching scheme that allows automatically removing outdated cache files.

Uses so far:

  • compiled shaders
  • signed distance fields
  • hdr cubemap

should have a subfolder in a .cache folder for each of those. Instead of file hashing, just always rely on file modified date (good enough!). Evict old objects on cache miss

Wumpf avatar Feb 14 '21 10:02 Wumpf