Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule generator.module·originates fromworld 07158574-5…

diskcache

A Generator's disk cache and baked snapshot: the outputs a graph declares `diskCache` on, loaded from the world's cache, the writes a commit makes for them, and the snapshot an earlier engine stored with the scene.

by◐lumi·posted 1mo ago
What it does

generator.diskcache

A Generator's disk cache and baked snapshot: the outputs a graph declares diskCache on, loaded from the world's cache, the writes a commit makes for them, and the snapshot an earlier engine stored with the scene.

One part of the Generator component. ~.generator installs it on a Generator instance's context table, gen, which the component makes once per instance: the part keeps its shared state and the operations other parts call as fields of gen, and what only it reads as locals of its install function, so every instance holds its own.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

generator.diskcache A Generator's disk cache and baked snapshot: the outputs a graph declares `diskCache` on, loaded from the world's cache, the writes a commit makes for them, and the snapshot an earlier engine stored with the scene. Installed on one Generator instance's context, `gen`, by `~.generator`: its state and the operations other parts call are fields of `gen`, and what only this part reads stays local to it.

snapshotName( ) → string

The legacy snapshot's name, derived from the owner's stable entity id, which a scene rebuild keeps.

legacySnapshot( ) → any

The legacy snapshot this generator stands for: the `bakedSnapshot` field, or the bundle carrying its name when the field was reset by a replacement.

standSnapshot(ref: any) → boolean

Stand the legacy snapshot under the owner, tracking what it spawned so the next realization replaces it. Answers whether it stood.

argtypedescription
refany

releaseDiskCaches( ) → void

Drop every value read from the disk cache. A Population standing in the scene is the realization's to release; everything else read is released here.

fromDiskCache(outputName: string, frame: number?) → any

The value the disk cache holds for output `outputName` on `frame`, or nil when it holds none. A file that cannot be read is reported, and the output is cooked from then on.

argtypedescription
outputNamestring
framenumber?

diskHoldsAll(names: { string }) → boolean

Whether the disk cache holds every frame of every output this generator realizes, so there is nothing to cook.

argtypedescription
names{ string }

diskCacheWrites( ) → void

What committing the world stores for this generator: every output that caches here and whose index does not yet hold every frame it will. Whether time changes the output is asked after its first frame cooks, so a node reading time in its own code counts; one it does not change is one file.

valueAt(frame: number) → any

argtypedescription
framenumber

written(_result: any) → void

argtypedescription
_resultany

bindDiskCaches(graph: any, names: { string }, tl: any) → void

Bind the disk cache of every output the graph caches, for the params and timeline window the generator cooks it under. Registers what a commit stores while any output caches here.

argtypedescription
graphany
names{ string }
tlany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.