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

baseline

The renderer a caller began with: `renderer.markBaseline`, `renderer.resetToBaseline` and `renderer.releaseBaseline`.

by◐lumi·posted 5d ago
What it does

renderer.baseline

The renderer a caller began with: renderer.markBaseline, renderer.resetToBaseline and renderer.releaseBaseline.

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.baseline global renderer The renderer a caller began with: the marks renderer.markBaseline takes and the resets to them.

readPostChain( ) → void

The post-process chain as it stands: each effect's own switch in the chain (`chain`, the one `postprocess.setEnabled` sets) and the value each of its declared properties holds, read through the chain's own account.

samePropertyValue(a: any, b: any) → boolean

Whether two property values read the same: a number against a number, an array against an array element by element.

argtypedescription
aany
bany

rendererMark(generation: number?) → void

Internal: the mark `generation` names, with its index, or the newest.

argtypedescription
generationnumber?

markBaseline( ) → number

Record which render features are live and how the feature-texture array is configured, and make that the point `renderer.resetToBaseline` returns to. A caller running work in an engine it shares — a sweep of test suites, a tool driving a session — leaves the renderer holding whatever that work set up: a feature a module created on first use, an array reconfigured to the size one pass wanted. This is how such a caller says where its own changes start. pass The live features and the array's configuration are recorded as a mark above the marks before it. `renderer.resetToBaseline` takes to restore to this mark.

examples

local mark = renderer.markBaseline() -- then run, then renderer.resetToBaseline(mark)

registeredCopy(content: { [string]: any }, generation: ?) →

Destroy every render feature created since `renderer.markBaseline`, withdraw every capture view registered since, and put the feature-texture array back to the size it recorded. A feature the mark recorded is known by its identity: one destroyed and created again under the same identity since the mark stands, under whatever guid it now carries. A capture view is known by its name. A runtime texture, material or mesh made since the mark goes too, unless something that outlives the reset still uses it: its maker stands (a component instance on a live entity, a scene load still loaded, a feature the mark recorded), or a live entity wears it, a standing material's slot names it, or a screen, camera, sky, lightmap, instanced draw, kept effect or standing feature's pass draws with it. A label a live `Text3D` made since the mark keeps its texture, material and quad, and a `Model` wearing a mesh made since the mark keeps drawing it. Who uses each one is read off the runtime-resource census (`renderer.references`), so when anything was made since the mark the call yields for the frame the census answers on. A feature is usually created by the module that needs it, on first use, and that module holds its own record of having done so. Drop the module's cache alongside this (`engine.resetScriptingState`) or the module will go on believing it has a feature this destroyed, and nothing will rebuild it. A hold on the clock (`renderer.temporal.hold`) or on the air (`renderer.atmospherics.hold`) taken since the mark comes off; one the mark recorded stands until the caller that took it releases it. What this asks for lands on the renderer's next frame, so a caller that must see the renderer already back — one handing the engine to somebody else — waits a frame when the answer is above zero. pass Features the mark did not record are gone, so is every texture, material and mesh made since the mark that nothing standing uses, and the array is back at the recorded size, from the next frame on. or mesh destroyed, and one more if the array was resized. Zero means the renderer already stood at the baseline and nothing was queued. it; the newest mark when omitted. The marks taken after it go with the reset.

argtypedescription
content{ [string]: any }
generation?The mark to restore to, as `renderer.markBaseline` returned

examples

if renderer.resetToBaseline(mark) > 0 then task.waitFrames(1) end

resetToBaseline(generation: number?) → number

argtypedescription
generationnumber?

inUse(kind: string, id: string) → boolean

Whether the resource `kind`/`id` outlives this reset: its maker still stands (a component instance on a live entity, a scene load still loaded, a feature the mark recorded), or something that outlives the reset uses it — an entity wearing it, a standing material whose slot names it, a pass a standing feature queues, an effect the chain keeps, a screen, a camera, a sky, a lightmap or an instanced draw.

argtypedescription
kindstring
idstring

releaseBaseline(generation: number) → boolean

Drop the mark `generation` names, and every mark taken after it, once the caller that took it is done resetting to it. It touches the marks alone.

argtypedescription
generationnumberThe mark to drop, as `renderer.markBaseline` returned it.

examples

renderer.releaseBaseline(mark) -- the run is over

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.