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

core

The renderer table every `renderer.*` namespace is defined on, the engine surfaces those namespaces call, the runtime registry a create files a resource in under the holder its scope names, and the handles each create hands out, held weakly so a resource nothing reaches any more…

by◐lumi·posted 5d ago
What it does

renderer.core

The renderer table every renderer.* namespace is defined on, the engine surfaces those namespaces call, the runtime registry a create files a resource in under the holder its scope names, and the handles each create hands out, held weakly so a resource nothing reaches any more is let go.

Interface

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

conforms to

zero/source-extract/v2

module renderer.core global renderer The renderer table, the engine surfaces it calls, and the record of every runtime resource a create filed and every handle it handed out.

isAssembledArray(key: string) → boolean

Whether a texture key names an ARRAY the texture cache assembles from its layers' textures (`array:a|b|c`). The cache assembles one again whenever something names it, so the layers are what bring it back.

argtypedescription
keystring

registerRuntime(kind: string, id: string) → void

Record a created resource under the holder the running scope names.

argtypedescription
kindstring
idstring

holdHandle(kind: string, guid: string, set: { [any]: any }, handle: any) → void

Put `handle` in `set`, the handle set of `kind`'s `guid`, with its notices. The entry's value is a notice, which the collector frees the cycle after the one that takes the handle, whatever metatable a script gives the handle meanwhile. An unfrozen handle with no metatable also carries a notice in one, which goes in the cycle that takes the handle. A handle the set already holds keeps the notice its entry has. Each notice names the resource it watches a handle to, so while nothing but a handle keeps that resource the collector finishes its cycles within a bound and a dropped handle is taken in bounded time.

argtypedescription
kindstring
guidstring
set{ [any]: any }
handleany

collectedHandles( ) → void

The guids whose handles the collector has taken since the last call, by kind; a guid can be named once per handle it had.

letGoTexturesOf(def: any, keep: any?) → void

A material record stops naming the textures its slots held: each of them goes on the let-go watch, which releases it once nothing else holds it (the texture the device holds for an asset included, read back from that asset the next time something names it). `keep` is the record that takes its place, whose own textures stay named.

argtypedescription
defany
keepany?

dropEmptied(self: ?) → void

Drop every stamped set the collector has emptied.

argtypedescription
self?

standsAgain(kind: string, guid: string) → void

A resource stands under `guid` again: every handle a release stamped for it names it once more and holds it, the way the handle a create hands out does.

argtypedescription
kindstring
guidstring

trackHandle(kind: string, guid: string, handle: any) → void

argtypedescription
kindstring
guidstring
handleany

forgetHandles(kind: string, guid: string, by: string) → void

Take the resource's handles off the set that holds it, stamping each with `by`, the verb that released it.

argtypedescription
kindstring
guidstring
bystring

handleHeld(kind: string, guid: string) → boolean

Whether a script still holds a handle to the resource. Read after a full garbage collection, so a handle nothing reaches has already left the set.

argtypedescription
kindstring
guidstring

forgetStaleSessionMaterials( ) → void

Let go of the session store's entry for every session material whose entity has gone. That entry is the last thing reaching the handle once the component that applied it is down, so releasing it is what makes the handle one nothing reaches — and the material, its bind group and the textures it binds go on the collection that follows.

collectUnreachableHandles( ) → void

Run a full garbage collection, so the handle sets above hold exactly the handles scripts still reach. A session material whose entity has gone is let go of first, so the collection sees the handle for what it is.

cpuBoundsOfGuid(guid: string) → Aabb

Read a mesh's local-space AABB from the guid-keyed CPU store — the bounds computed ONCE when the CPU mesh was decoded/loaded (`renderer.mesh.loadCpu`), carried onto the handle. This is the cheap, correct source: bounds are CPU geometry metadata, never a GPU readback. Returns ZERO_AABB when no CPU mesh is resident under the guid (e.g. a compute-buffer mesh that supplies its own aabbMin/aabbMax) so bounds stay optional metadata, not a hard requirement.

argtypedescription
guidstring

restateMeshBounds(guid: string, bounds: Aabb) → void

Give every handle a create or an update handed out for the mesh under `guid` the extent its geometry has now, so a handle a script keeps reads the box the mesh is drawn and culled with after its geometry is rewritten in place.

argtypedescription
guidstring
boundsAabb

wrapMeshHandle(guid: string, name: string, bounds: Aabb) → MeshHandle

argtypedescription
guidstring
namestring
boundsAabb

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.