evaluate自动生成
运行一帧。
Runs one frame.
{"id": 1, "op": "evaluate"}| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
nodes |
[string] |
否 | evaluate only these nodes, the state and never-produced outputs |
settle |
bool |
否 | first wait for every async run to land |
measure |
bool |
否 | wait for the device after each node, so timings are the work and not its submission |
clock |
bool |
否 | time the frames on the device as they run, waiting for nothing, from this evaluation on (false stops); device is the latest one done, node by node |
time |
number |
否 | session time in seconds; 0 when not given |
rate |
number |
否 | the sound clock, frames a second, which Kernels read as rate() |
queued |
number |
否 | the samples (per channel) the sound device holds and has not played, which Kernels read as queued(); 0 when not given |
pointer |
[x, y] |
否 | the pointer in the output’s pixels from its top left, as a Kernel’s pointer() reads it |
down |
bool |
否 | whether the pointer is pressed, what pointer_down() reads |
buttons |
[integer] |
否 | buttons held: 0 left, 1 right, 2 middle, then a pad’s |
wheel |
[x, y] |
否 | the scroll for this frame |
sticks |
[[x, y]] |
否 | a pad’s left stick, right stick and triggers, up to three pairs |
pads |
integer |
否 | how many pads are connected, what pads() reads |
keys |
[integer] |
否 | keys held, by the browser’s codes |
text |
string |
否 | the characters typed since the last evaluation, what typed() reads; 32 at most |
window |
[w, h] |
否 | the window in pixels; else the session’s |
scale |
number |
否 | the window’s scale factor, with window; 1 when not given |
executed, reused, committed, outputs, timings, measured, device, let_go (nodes let go to make room in the Host); in the Player, ignored (the context fields it gave, which the window’s own input stands in for) and a note

