r3d/runtime: allocs, keeps and births at 0 on this side
render3d: shadow_fit, water_reflection_pass, layer_partition_lods and the GPU cull's scratch are made with the state; v3_dist is scalar; the pushes into lists sized at start-up, the caps probe, the table growth, the loads and the constructors declared with their bounds (one statement a line); the renderer's name made once with the device; the two error messages given back; the dead lupine models removed. runtime: a component's text is held interned in its value cell (one copy per distinct text), so the getter's own text goes with its frame instead of being kept by ludic.ui's model - 80 of the 83 keeps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5be2422c84
commit
f993c4a36a
18 changed files with 105 additions and 177 deletions
|
|
@ -193,6 +193,7 @@ function stream_evict(render3d_st: mut Render3dState, s: Stream) -> void {
|
|||
w += 1
|
||||
} else {
|
||||
c.off = -1
|
||||
@alloc_ok("within the stream's record pool, all made with the stream (STREAM_MAX_CHUNKS)")
|
||||
push(s.spare, c)
|
||||
}
|
||||
i += 1
|
||||
|
|
@ -263,6 +264,7 @@ function stream_update(render3d_st: mut Render3dState, s: Stream, cam_x: float,
|
|||
if need > 0 { mem_copy(mem_off(data_of(s.arena), s.top * 4), data_of(render3d_st.stream_scratch), need * 4) }
|
||||
c.off = s.top
|
||||
s.top += need
|
||||
@alloc_ok("within the stream's record pool, all made with the stream (STREAM_MAX_CHUNKS)")
|
||||
push(s.chunks, c); s.keys[s.n] = key; stream_remember(s, key, s.n); s.n += 1
|
||||
c.used = render3d_st.stream_walk_no
|
||||
} else { loose = true }
|
||||
|
|
@ -287,6 +289,7 @@ function stream_update(render3d_st: mut Render3dState, s: Stream, cam_x: float,
|
|||
l.count += c.count
|
||||
render3d_st.stream_us_gather = render3d_st.stream_us_gather + (gl_now_us() - tg)
|
||||
}
|
||||
@alloc_ok("within the stream's record pool, all made with the stream (STREAM_MAX_CHUNKS)")
|
||||
if loose and c != render3d_st.stream_loose { push(s.spare, c) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue