Limits and what is not built yet
The engine is young. It has what Fabi Play’s own games needed first; this is what it does not have yet. Until then, the workaround is next to each item.
Drawing
Section titled “Drawing”- Rotated frames. Atlases and BMFont pages with rotated frames are not read (the console says so). Export them without rotation.
- Multi-line bitmap texts. A text drawn with a bitmap font is one line: use one text per line.
- Nine-slice of baked frames. Insets are in the frame’s pixels, and a baked frame’s pixels change with the
resolution. Use a
roundRectshape, or load the panel as an image (see Nine-slice). - The cost of masks on TVs. Each mask costs two composites over the masked node’s area, still to be measured on real TVs. Use a few (see Clips and masks).
- Filters on old browsers. Where Canvas 2D has no
ctx.filter(Safari before 18, some old TV browsers), onlytintis drawn; the other filters are skipped (engine.supports.filtersis false). - Blur on the low tier. Blurs are off on the low tier and drop shadows hard; medium caps radii at 16 units, high at
32 (
engine.supports.maxBlur). - The largest blur on WebGL. A blur is exact up to a σ of about 170 screen pixels, which the tier caps don’t reach up to 4K (32 units on a 4K screen are 96 pixels); past that its outer edge is cut short.
- Custom shaders are WebGL only. On Canvas 2D a
shader()filter is skipped: checkengine.supports.shaders. Onlyfloatandvec2–vec4uniforms; no extra textures. - Colour filter chains on Canvas 2D vs WebGL. Both clamp colours after each filter, as CSS does, so chains match. A run of more colour filters than the GPU’s uniforms allow in one pass (8 on most devices, 2 at the very least) is composed into fewer matrices without the clamps in between, and can differ slightly where a step overshoots.
- The cost of filters on TVs. Each filtered node costs its layer and a pass per step (blurs two to six), over the node’s area; still to be measured on real TVs. Use a few.
- WebGPU. No WebGPU renderer:
renderer: 'webgpu'uses the best WebGL. It will be added only if it is measurably faster on the devices Fabi Play targets.
- A node dropped without
destroy(). Nodes keep their transform in the engine’s arrays (see Nodes are handles). Groups, and nodes taken out withremove(), give their slots back when they are collected; a single node made and never added to a group keeps its slot (about 160 bytes) until the page closes. Destroy nodes you are done with. x,alphaand the other transform fields are numbers. They are stored as 64-bit floats: a value that is not a number is converted on the way in (node.x = '5'reads back5,undefinedreads backNaN), andvisiblereads backtrueorfalse.
Tiers and devices
Section titled “Tiers and devices”- The tier thresholds are first guesses, still to be tuned on real TVs (including 50 Hz displays and browsers that cap animation frames at 30).
- The TV’s tier hint is the TV platform’s default for now, or
lowwhere the screen itself fell back to Canvas 2D. Numbers per TV model, from a device lab, will replace those defaults. The engine still steps down by itself when frames are slow (see How the tier is chosen).
Not planned
Section titled “Not planned”Physics, 3D, a scene editor, an entity/component system and networking are not part of the engine (see
Overview). Overlap tests (engine.touched, engine.hits)
cover what movement games need.