ludic.ui: a select matches a number as a number (its text was made every frame per select); the fired-event queue's lists made with room; ludic.inventory: the counts made at full length at once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d483c9283c
commit
bd2d62ddca
5 changed files with 57 additions and 10 deletions
24
packages/ludic.ui/native_room.ludic
Normal file
24
packages/ludic.ui/native_room.ludic
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# native_room.ludic - the fired-event queue's lists made with room already: a list's first growth
|
||||
# is made at start rather than in the frame that first fires an event
|
||||
const NT_ROOM: int = 32
|
||||
@alloc_ok("once: made with the state")
|
||||
function nt_nodes__new() -> []UiNode {
|
||||
let xs = new []UiNode
|
||||
for i in 0 .. NT_ROOM { push(xs, null) }
|
||||
List.clear(xs)
|
||||
return xs
|
||||
}
|
||||
@alloc_ok("once: made with the state")
|
||||
function nt_names__new() -> []string {
|
||||
let xs = new []string
|
||||
for i in 0 .. NT_ROOM { push(xs, "") }
|
||||
List.clear(xs)
|
||||
return xs
|
||||
}
|
||||
@alloc_ok("once: made with the state")
|
||||
function nt_vals__new() -> []Val {
|
||||
let xs = new []Val
|
||||
for i in 0 .. NT_ROOM { push(xs, null) }
|
||||
List.clear(xs)
|
||||
return xs
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue