Skip to content

Callback rules

  1. Callbacks run on the game thread - OK for snapshots, schema, config, panorama queue.
  2. Only queue draws with aqua.draw in on_draw.
  3. SteamIDs are strings - never coerce with tonumber for row keys.
  4. Prefer Scripts.<name>.* config keys.
  5. Do not busy-loop in callbacks.
  6. FFI is opt-in and unsafe - leave off unless required.