- Variable watch (dev server only; F9 shows and hides it): Watch the game, temp and system variables while playing. Filter by name; items pinned with ☆ go to the top
(saved in this browser). Click a value to rewrite it in JSON notation (it only goes into the variables of the current playthrough and isn’t saved). It isn’t included in exports
- Performance monitor (dev server only; F10 shows and hides it): At the top left, it shows the frame rate (over the last second), the number of long frames (over 50ms) and the longest one,
the number of long tasks (in browsers with the Long Tasks API), JS memory (only in Chromium, which has
performance.memory; elsewhere it says the value can’t be read),
the number of DOM elements, the number and size of loaded assets (images, sounds, videos, fonts, others), and the assets that took long to load.
Frames are counted only while it’s shown, and the reset button sets the frame count back to 0. Assets are counted from Resource Timing; the dev server checks assets again every time,
so it may show more than an exported game. It isn’t included in exports
- Test play tools (dev server only: “Test play” in Studio and
lim dev): When you fix the script during play, “The script changed” and
“Reload from here” appear on top of the game screen. Reloading keeps the current state (including the history, the record of choices and play time), reloads the scripts and continues from the current page (also with ⇧R.
Games that replace the system screens do the same if they have SystemController.reloadHere; otherwise the current page’s save is reloaded with loadSave).
⇧E and “Open this page in the script” in the menu at the top right open the current page’s line in Studio. Runtime problems (missing screens, errors in expressions and so on) appear small at the top right as “N warnings,”
and pressing it shows a list (pressing an item opens that line in Studio; they’re also listed in Studio’s Check as “Found in test play”). ⇧R and ⇧E aren’t in the default key bindings,
and even if the game assigns them, test play receives them first. The menu at the top right isn’t shown with ?autostart=1. It isn’t included in exports
lim profile: Takes the measurements above while opening the player in Chromium and advancing a set number of pages, and makes a report (below)
lim profile [project] [file[#label]] [--pages 30] [--wait 500] [--choose 0,1] [--out folder] [--json]
- If you leave out the starting point, it starts from
entry in liminalia.json. After each page is fully shown, it waits --wait milliseconds, takes the numbers and advances
(it also advances click waits in the middle of a line; the numbers for the same page are combined into one). At choices, it picks the numbers in --choose (0-based) in order, and the first option once they run out
- It writes
計測.md (summary, slow assets, and the frame rate, memory, DOM elements and asset counts per page) and
計測.json to exports/profile (change it with --out; the file names are Japanese for “measurement”) and prints the summary. --json only prints JSON
- Chromium is the same one
lim shot uses (LIMINALIA_CHROMIUM or Playwright’s chrome-headless-shell)
- “Measure performance” on Studio’s “Check” screen takes the same measurements (the code is shared in
server/profile.ts of @liminalia/studio; studio.md).
In Studio, it picks the first option at choices and waits 500 milliseconds. The desktop app measures with its own Electron, so it doesn’t need Chromium