AmbientRun / Ambient

The multiplayer game engine
https://ambient.run
Apache License 2.0
3.8k stars 124 forks source link

Cache invalidation for assets from pipeline #81

Open FredrikNoren opened 1 year ago

FredrikNoren commented 1 year ago

Currently you have to manually delete tmp/http to clear the cache when you make a change to any asset or the pipeline importing it. We need to figure out a way to automate this.

One idea would be to hash the content of assets and put them under a sub-dir based on the hash.

What we come up with also needs to work for hot reloading (#12 )

philpax commented 1 year ago

Using hashes is pretty standard I think - I would need to check but I'm like 99% sure that's what GMod does with Steam Workshop

FredrikNoren commented 1 year ago

I've disabled caching for now (and made it configurable)