Builtin Library
README.md
proc.diskcache
A graph output's cooked value on disk, so a Generator loads what was cooked instead of cooking it again. What is stored is the value an output hands to realization (geometry and its columns, instance sets, prefabs and bundles, materials and generated textures), and loading realizes it the way a cook's value is realized. The store is per graph and shared by every Generator on it:
/zero/source/_cache/procgen/<graph guid>/<index key>.index
/zero/source/_cache/procgen/<graph guid>/<content hash>.cook
An index names one way of cooking the graph (the graph as it stands, its params, the frame rate and range its timeline plays, the live state it reads) and maps each frame to the content it produced; content is stored once per distinct output, named by the SHA-256 of its bytes. provide registers what a generator stores, store writes it (committing the world does this first), readIndex, contentFor and load read it back, and prune deletes what no index names. Nothing is written inside an asset's folder.
Part of @builtin::systems.procgen.proc; reached as proc.diskcache.