Wumpf / blub

3D fluid simulation experiments in Rust, using WebGPU-rs (WIP)
MIT License
403 stars 12 forks source link

unified cache folder #44

Open Wumpf opened 3 years ago

Wumpf commented 3 years ago

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:

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