benilla-re systems structs docs

CRibbonEmitter::Update

function · models · primitive

Address
0x7b7e60 · 593 bytes, up to 0x7b80b0
Signature
void __thiscall (CRibbonEmitter *this, float dt, uint32_t noEmit)
Meaning
Ages out old edges, emits new ones along the node curve, writes the head edge and ages every edge
Confidence
verified, proof one
Finding
models/ribbons#ribbon-update
Test
models::dt_clamp_difftest, models::emit_frac_advance_difftest, models::emit_interp_head_difftest, models::emit_segment_offset_difftest, models::emit_t_recip_difftest, models::expire_sum_difftest, models::ribbonage_expire_sum_difftest, models::ribbonage_gravity_emit_difftest, models::ribbonage_interp_factor_difftest, models::ribbonage_next_counter_difftest, models::ribbonage_phase_frac_difftest, models::ribbonage_recip_floorarg_difftest, models::ribbonage_segment_iter_difftest, models::segment_point_write_difftest

Finding: Ribbon update in models: ribbons

An update clamps dt into [0, L] and drops tail edges whose age plus dt exceeds L. A visible, started ribbon then accumulates e = dt·rate + carry and commits floor(e) edges at t_j = (j − carry)·r with r = 1/(e − carry) rounded to a float, aged −t_j·dt, keeps e − floor(e) as the carry, and writes the head edge at t = 1, age 0. Every committed edge then moves gravity·(2·age + dt)·dt up in z, ages by dt, and takes u = u0 + age·w/L, v the cell's bottom and top.

The derivation is in the doc.

Callers 2

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.