xbintsc 0.7.7 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli/help.d.ts +1 -1
- package/dist/src/cli/help.js +1 -1
- package/dist/src/codegen/generator/calls/invocation.js +6 -4
- package/dist/src/codegen/generator/calls/invocation.js.map +1 -1
- package/dist/src/codegen/generator/context.d.ts +4 -3
- package/dist/src/codegen/generator/context.js +6 -5
- package/dist/src/codegen/generator/context.js.map +1 -1
- package/dist/src/codegen/generator/expressions/assignment.js +3 -3
- package/dist/src/driver/config.d.ts +1 -1
- package/dist/src/driver/options.d.ts +1 -1
- package/dist/src/driver/version.d.ts +1 -1
- package/dist/src/driver/version.js +1 -1
- package/dist/src/extensions/gui/features.d.ts +14 -6
- package/dist/src/extensions/gui/features.js +34 -6
- package/dist/src/extensions/gui/features.js.map +1 -1
- package/dist/src/extensions/gui/index.js +3 -3
- package/dist/tests/codegen/llvm.test.js +1 -1
- package/dist/tests/e2e/gui-audio.test.js +24 -0
- package/dist/tests/e2e/gui-audio.test.js.map +1 -1
- package/dist/tests/e2e/gui-draw-perf.test.js +9 -0
- package/dist/tests/e2e/gui-draw-perf.test.js.map +1 -1
- package/dist/tests/e2e/gui-font-face.test.d.ts +3 -1
- package/dist/tests/e2e/gui-font-face.test.js +99 -7
- package/dist/tests/e2e/gui-font-face.test.js.map +1 -1
- package/dist/tests/e2e/gui-frame-pacing.test.d.ts +15 -0
- package/dist/tests/e2e/gui-frame-pacing.test.js +68 -0
- package/dist/tests/e2e/gui-frame-pacing.test.js.map +1 -0
- package/dist/tests/e2e/gui-initial-url.test.d.ts +10 -0
- package/dist/tests/e2e/gui-initial-url.test.js +49 -0
- package/dist/tests/e2e/gui-initial-url.test.js.map +1 -0
- package/dist/tests/e2e/gui-layout.test.js +85 -0
- package/dist/tests/e2e/gui-layout.test.js.map +1 -1
- package/dist/tests/e2e/gui-webgl-depth-init.test.d.ts +13 -0
- package/dist/tests/e2e/gui-webgl-depth-init.test.js +144 -0
- package/dist/tests/e2e/gui-webgl-depth-init.test.js.map +1 -0
- package/dist/tests/e2e/gui-webgl-depth-range.test.d.ts +18 -0
- package/dist/tests/e2e/gui-webgl-depth-range.test.js +140 -0
- package/dist/tests/e2e/gui-webgl-depth-range.test.js.map +1 -0
- package/dist/tests/e2e/gui-webgl.test.js +49 -0
- package/dist/tests/e2e/gui-webgl.test.js.map +1 -1
- package/dist/tests/e2e/gui-webgpu-attachment.test.d.ts +19 -0
- package/dist/tests/e2e/gui-webgpu-attachment.test.js +258 -0
- package/dist/tests/e2e/gui-webgpu-attachment.test.js.map +1 -0
- package/dist/tests/e2e/method-call-cache.test.js +27 -0
- package/dist/tests/e2e/method-call-cache.test.js.map +1 -1
- package/dist/tests/extensions/gui-features.test.js +27 -2
- package/dist/tests/extensions/gui-features.test.js.map +1 -1
- package/doc/ai/extensions.md +10 -4
- package/doc/ai/zh-CN/extensions.md +8 -3
- package/doc/gui/animation.md +1 -1
- package/doc/gui/api.md +35 -2
- package/doc/gui/build.md +34 -15
- package/doc/gui/dom.md +3 -2
- package/doc/gui/known-issues.md +1 -1
- package/doc/gui/layout.md +9 -3
- package/doc/gui/rendering.md +45 -8
- package/doc/gui/runtime.md +13 -0
- package/doc/gui/webgl.md +29 -3
- package/doc/gui/webgpu.md +20 -0
- package/doc/gui.md +9 -4
- package/doc/implemented/codegen.md +4 -3
- package/doc/zh-CN/gui/animation.md +1 -1
- package/doc/zh-CN/gui/api.md +25 -2
- package/doc/zh-CN/gui/build.md +20 -7
- package/doc/zh-CN/gui/dom.md +3 -2
- package/doc/zh-CN/gui/known-issues.md +1 -1
- package/doc/zh-CN/gui/layout.md +7 -4
- package/doc/zh-CN/gui/rendering.md +33 -8
- package/doc/zh-CN/gui/runtime.md +9 -0
- package/doc/zh-CN/gui/webgl.md +7 -4
- package/doc/zh-CN/gui/webgpu.md +18 -0
- package/doc/zh-CN/gui.md +10 -5
- package/doc/zh-CN/implemented/codegen.md +4 -3
- package/package.json +7 -7
- package/runtime/ext_gui/audio_graph_commands.cpp +127 -0
- package/runtime/ext_gui/audio_mixer.cpp +84 -163
- package/runtime/ext_gui/audio_mixer.h +59 -3
- package/runtime/ext_gui/audio_mixer_extra.cpp +8 -0
- package/runtime/ext_gui/audio_param_apply.cpp +160 -0
- package/runtime/ext_gui/browser.cpp +6 -19
- package/runtime/ext_gui/browser_location.cpp +78 -0
- package/runtime/ext_gui/css.cpp +1 -0
- package/runtime/ext_gui/css.h +4 -0
- package/runtime/ext_gui/css_sheet.cpp +4 -2
- package/runtime/ext_gui/document_animation.cpp +7 -0
- package/runtime/ext_gui/dom_api_computed_style.cpp +3 -2
- package/runtime/ext_gui/dom_api_webgl.cpp +39 -2
- package/runtime/ext_gui/dom_api_webgl_extensions.cpp +134 -0
- package/runtime/ext_gui/dom_api_webgl_internal.h +4 -0
- package/runtime/ext_gui/dom_api_webgl_shader.cpp +28 -4
- package/runtime/ext_gui/dom_api_webgl_state.cpp +6 -103
- package/runtime/ext_gui/gui.cpp +100 -1
- package/runtime/ext_gui/gui_events.cpp +8 -2
- package/runtime/ext_gui/layout_flex.cpp +5 -2
- package/runtime/ext_gui/layout_flow.cpp +24 -1
- package/runtime/ext_gui/layout_flow_internal.h +11 -2
- package/runtime/ext_gui/media_query.cpp +3 -0
- package/runtime/ext_gui/perf.cpp +18 -6
- package/runtime/ext_gui/perf.h +37 -0
- package/runtime/ext_gui/style.cpp +28 -10
- package/runtime/ext_gui/style.h +10 -1
- package/runtime/ext_gui/style_length.cpp +4 -0
- package/runtime/ext_gui/style_print.cpp +7 -1
- package/runtime/ext_gui/style_values.cpp +6 -5
- package/runtime/ext_gui/text.cpp +4 -0
- package/runtime/ext_gui/text_font_bytes.cpp +117 -0
- package/runtime/ext_gui/text_font_bytes.h +65 -0
- package/runtime/ext_gui/text_font_db.cpp +5 -0
- package/runtime/ext_gui/text_font_sfnt.cpp +71 -24
- package/runtime/ext_gui/text_font_sfnt.h +5 -2
- package/runtime/ext_gui/text_hb.cpp +34 -5
- package/runtime/ext_gui/text_stb.cpp +7 -30
- package/runtime/ext_gui/text_webfont.cpp +217 -0
- package/runtime/ext_gui/warnings.cpp +26 -0
- package/runtime/ext_gui/warnings.h +8 -0
- package/runtime/ext_gui/webfont_bridge.c +23 -0
- package/runtime/ext_gui/webgl.h +36 -39
- package/runtime/ext_gui/webgl_blit_color.cpp +5 -0
- package/runtime/ext_gui/webgl_buffer_objects.cpp +19 -5
- package/runtime/ext_gui/webgl_context.cpp +2 -0
- package/runtime/ext_gui/webgl_draw.cpp +72 -12
- package/runtime/ext_gui/webgl_draw_setup.cpp +8 -2
- package/runtime/ext_gui/webgl_draw_state.h +13 -2
- package/runtime/ext_gui/webgl_framebuffer.cpp +8 -0
- package/runtime/ext_gui/webgl_objects.h +19 -0
- package/runtime/ext_gui/webgl_program.h +64 -0
- package/runtime/ext_gui/webgl_state.cpp +7 -0
- package/runtime/ext_gui/webgl_targets.cpp +31 -7
- package/runtime/ext_gui/webgl_uniform.cpp +78 -0
- package/runtime/ext_gui/webgpu.h +10 -0
- package/runtime/ext_gui/webgpu_buffer.cpp +3 -1
- package/runtime/ext_gui/webgpu_canvas.cpp +1 -0
- package/runtime/ext_gui/webgpu_command.cpp +51 -11
- package/runtime/ext_gui/webgpu_convert.cpp +7 -2
- package/runtime/ext_gui/webgpu_pass.cpp +12 -0
- package/runtime/ext_gui/webgpu_queue.cpp +3 -0
- package/runtime/ext_gui/webgpu_resources.cpp +1 -0
- package/runtime/ext_gui/window.cpp +6 -0
- package/runtime/rt_object.h +6 -0
- package/runtime/rt_profile.h +6 -0
- package/runtime/xt_containers/access.inc +2 -47
- package/runtime/xt_containers/ic_get.inc +70 -0
- package/runtime/xt_containers/method_cache.inc +42 -11
- package/runtime/xt_containers/objects.inc +12 -1
- package/runtime/xt_containers/shapes.inc +78 -0
- package/runtime/xt_containers.c +1 -0
- package/runtime/xt_profile.c +3 -0
- package/scripts/build-gui.ts +43 -49
- package/scripts/gui-engine-build.ts +58 -0
- package/scripts/gui-vendor-source.ts +53 -0
- package/scripts/gui-webfont-build.ts +138 -0
- package/src/cli/help.ts +1 -1
- package/src/codegen/generator/calls/invocation.ts +6 -4
- package/src/codegen/generator/context.ts +6 -6
- package/src/codegen/generator/expressions/assignment.ts +3 -3
- package/src/driver/config.ts +1 -1
- package/src/driver/options.ts +1 -1
- package/src/driver/version.ts +1 -1
- package/src/extensions/gui/features.ts +34 -6
- package/src/extensions/gui/index.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-features.test.js","sourceRoot":"","sources":["../../../tests/extensions/gui-features.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE7D,MAAM,KAAK,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAElE;mEACmE;AACnE,EAAE,CAAC,IAAI,CAAC,iCAAiC,EAAE,GAAG,EAAE,CAAC,CAAC;IAChD,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;IAC5C,aAAa,EAAE,GAAG,EAAE,CAAC,6BAA6B;CACnD,CAAC,CAAC,CAAC;AACJ,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,cAAc,EAAE,GAAG,EAAE,CAAC,cAAc;IACpC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY;CACjC,CAAC,CAAC,CAAC;AAEJ,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,WAAW,EACX,aAAa,EACb,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,GACf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AI,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChF,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClF,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/doc/ai/extensions.md
CHANGED
|
@@ -214,14 +214,20 @@ extension flag:
|
|
|
214
214
|
non-ASCII text (or an escaped/entity codepoint) or an author `@font-face`
|
|
215
215
|
rule; a Latin-only page keeps the stb_truetype backend and links neither
|
|
216
216
|
library.
|
|
217
|
+
- **`webfonts`** — miniz + Brotli + the woff2 reference decoder for author
|
|
218
|
+
`@font-face` sources in `.woff`/`.woff2`. Selected automatically when the
|
|
219
|
+
program's HTML/CSS names a compressed font; the file is decompressed to a
|
|
220
|
+
plain sfnt once, so both text backends and the font's metadata read the same
|
|
221
|
+
bytes. A page whose fonts are system or `.ttf`/`.otf` files links none of it.
|
|
217
222
|
- **`webgl`** — the WebGL context and DOM bindings. Selected by a WebGL
|
|
218
223
|
`getContext(...)` or a `webgl` string; it requires `gpu`, so both activate
|
|
219
224
|
together. A page that never asks for WebGL links neither.
|
|
220
225
|
|
|
221
|
-
Override the scan with `--feature media,gpu,images,shaping,webgl` (or
|
|
222
|
-
feature out with `--no-feature media`. `--verbose` prints the
|
|
223
|
-
program that only renders HTML/CSS/2D canvas links no FFmpeg,
|
|
224
|
-
decoder, HarfBuzz/FreeType or WebGL
|
|
226
|
+
Override the scan with `--feature media,gpu,images,shaping,webfonts,webgl` (or
|
|
227
|
+
`all`) and keep a feature out with `--no-feature media`. `--verbose` prints the
|
|
228
|
+
selected set. A program that only renders HTML/CSS/2D canvas links no FFmpeg,
|
|
229
|
+
glslang, image decoder, HarfBuzz/FreeType, webfont decompressor or WebGL
|
|
230
|
+
context; a page that
|
|
225
231
|
builds HTML/CSS from runtime data should pass `--feature all` because the scan
|
|
226
232
|
cannot see it. If an auto-detected feature's archive is missing, the build warns
|
|
227
233
|
and the capability degrades at run time (media elements fire `error`); a forced
|
|
@@ -192,12 +192,17 @@ HTML/CSS/TS(导入的 `.html` 与内联 CSS 都属于 bundle),按程序自
|
|
|
192
192
|
- **`shaping`** —— HarfBuzz + FreeType 提供的完整 OpenType 整形(连字、复杂文种)
|
|
193
193
|
与 CFF/OTF/可变字体支持。非 ASCII 文本(或转义/实体码点)或作者的
|
|
194
194
|
`@font-face` 规则会自动选中;纯拉丁页面保持 stb_truetype 后端,两个库都不链接。
|
|
195
|
+
- **`webfonts`** —— 供作者 `@font-face` 的 `.woff`/`.woff2` 来源使用的 miniz +
|
|
196
|
+
Brotli + woff2 参考解码器。程序的 HTML/CSS 出现压缩字体时会自动选中;文件会
|
|
197
|
+
一次性解压成普通 sfnt,因此两个文本后端与该字体的元数据读取的是同一份字节。
|
|
198
|
+
字体是系统字体或 `.ttf`/`.otf` 文件的页面完全不会链接它。
|
|
195
199
|
- **`webgl`** —— WebGL context 与 DOM 绑定。由 WebGL 的 `getContext(...)` 或
|
|
196
200
|
`webgl` 字符串触发;它依赖 `gpu`,两者一起激活。不用 WebGL 的页面两者都不链接。
|
|
197
201
|
|
|
198
|
-
用 `--feature media,gpu,images,shaping,webgl`(或 `all`)覆盖扫描,用
|
|
199
|
-
强制不链接。`--verbose` 会打印选中的集合。只渲染
|
|
200
|
-
FFmpeg、glslang,也不链接图片解码器、
|
|
202
|
+
用 `--feature media,gpu,images,shaping,webfonts,webgl`(或 `all`)覆盖扫描,用
|
|
203
|
+
`--no-feature media` 强制不链接。`--verbose` 会打印选中的集合。只渲染
|
|
204
|
+
HTML/CSS/2D canvas 的程序既不链接 FFmpeg、glslang,也不链接图片解码器、
|
|
205
|
+
HarfBuzz/FreeType、Web 字体解压器或 WebGL context;用运行时数据拼 HTML/CSS 的
|
|
201
206
|
页面应传 `--feature all`,因为扫描看不到它。
|
|
202
207
|
自动检测到的特性归档缺失时构建打印 warning,能力在运行时降级(媒体元素触发
|
|
203
208
|
`error`);显式强制的特性则报错。
|
package/doc/gui/animation.md
CHANGED
|
@@ -87,7 +87,7 @@ same property set, shadow lists and `transform` identity filling.
|
|
|
87
87
|
(`translate`/`translate3d`/`translateX`/`translateY`,
|
|
88
88
|
`scale`/`scale3d`/`scaleX`/`scaleY`, `rotate`/`rotateZ`, `matrix`; the `3d`
|
|
89
89
|
spellings' `z` argument is parsed and dropped, since the engine is 2D;
|
|
90
|
-
`deg`/`rad`/`grad`/`turn`; `%`, `px`, `em`, `rem`, `vw`, `vh`). Layout
|
|
90
|
+
`deg`/`rad`/`grad`/`turn`; `%`, `px`, `em`, `rem`, `vw`, `vh`, `ch`). Layout
|
|
91
91
|
is not affected: geometry stays where flow put it, and only the painted result
|
|
92
92
|
moves, so a size, a scroll position or a sibling's position never depends on an
|
|
93
93
|
animation frame. See [Layout](./layout.md#transforms-m15) for the composition
|
package/doc/gui/api.md
CHANGED
|
@@ -173,6 +173,27 @@ runs the same equal-power path (no HRIR data set is shipped). The two media
|
|
|
173
173
|
sources are valid nodes with no signal — the engine has no media-capture or
|
|
174
174
|
element-audio pipeline, so they are silent rather than absent.
|
|
175
175
|
|
|
176
|
+
Graph mutations (`connect`, `start`/`stop`, the effect setup calls) and every
|
|
177
|
+
`AudioParam` schedule are **queued** instead of taking the mixer's render lock.
|
|
178
|
+
The page appends a command to a FIFO and the audio thread applies the batch at
|
|
179
|
+
the next quantum boundary, with the mutex already held. A convolver send makes a
|
|
180
|
+
single 128-frame quantum take a few milliseconds, so taking that lock from the
|
|
181
|
+
page made a per-frame `gain.value = …` wait for the current quantum — on a
|
|
182
|
+
scene that schedules sound every frame that was the largest main-thread audio
|
|
183
|
+
cost. Ordering is preserved (one FIFO for parameter updates and graph changes);
|
|
184
|
+
`AudioContext.currentTime` is an atomic read, and `AudioParam.value` drains the
|
|
185
|
+
queue first so a getter observes a just-written value. A node the audio thread
|
|
186
|
+
has not inserted yet is a special case: writes to it are applied directly to the
|
|
187
|
+
pending node (which `AudioParam.value` reads), because on a host with no audio
|
|
188
|
+
device — a headless runner, or any program that builds its graph before the
|
|
189
|
+
first `start()` — nothing would ever drain the FIFO.
|
|
190
|
+
|
|
191
|
+
Two environment variables separate the audio costs while profiling:
|
|
192
|
+
`XT_GUI_AUDIO_SILENT=1` renders silence but keeps the clock and the locking
|
|
193
|
+
(isolates the mixer's DSP cost from the page's Web Audio calls), and
|
|
194
|
+
`XT_AUDIO_PROFILE=1` prints the audio thread's wall time, lock wait, render duty
|
|
195
|
+
and worst quantum at shutdown (`xt_audio: …` on stderr).
|
|
196
|
+
|
|
176
197
|
Every `AudioParam` has a live `value` plus `setValueAtTime` /
|
|
177
198
|
`linearRampToValueAtTime` / `exponentialRampToValueAtTime` / `setTargetAtTime` /
|
|
178
199
|
`cancelScheduledValues` / `cancelAndHoldAtTime`. The automation timeline is
|
|
@@ -279,13 +300,15 @@ program has done in total, which is how rendering cost is measured (see
|
|
|
279
300
|
|
|
280
301
|
| Field | Meaning |
|
|
281
302
|
| --- | --- |
|
|
282
|
-
| `frameMs`, `restyleMs`, `layoutMs`, `paintMs`, `uploadMs`, `drawMs` | phase timings of the last frame (milliseconds) |
|
|
303
|
+
| `frameMs`, `scriptMs`, `restyleMs`, `layoutMs`, `paintMs`, `uploadMs`, `drawMs` | phase timings of the last frame (milliseconds). `scriptMs` is the time inside `requestAnimationFrame` callbacks — the page's own AOT code plus the WebGL command recording it does — so `frameMs - scriptMs - restyleMs - paintMs - uploadMs - drawMs` is the loop's own overhead |
|
|
304
|
+
| `webglDrawMs`, `webglUniformMs` | WebGL draw recording and uniform uploads (both are part of `scriptMs`; recorded only while `XT_GUI_PERF` is set) |
|
|
283
305
|
| `frames`, `presents`, `exposes`, `deferred`, `skippedFrames`, `starvedFrames`, `transitionFrames` | frame loop activity: `presents` counts swapchain frames, `exposes` the presents the window system asked for with an expose/shown/restore event, `deferred` the presents a starved frame postponed, `skippedFrames` the frames nothing needed and `starvedFrames` the frames that asked to present and got no drawable target |
|
|
284
306
|
| `restyles`, `restyleNodes`, `rulesEvaluated`, `mediaEvaluated`, `layouts`, `layoutBoxes` | cascade and layout work |
|
|
285
307
|
| `textShapeCalls`, `textShapeHits`, `textCacheBytes`, `textCacheEntries` | shaping cache misses/hits and its occupancy |
|
|
286
308
|
| `paints`, `paintOps`, `drawRuns`, `drawCalls`, `uploadSubmits`, `vertices`, `syncNodes` | display-list, draw-call and upload work |
|
|
287
309
|
| `canvasDraws`, `canvasUploads`, `canvasUploadBytes` | Canvas 2D draw calls, texture uploads and the bytes copied (a partial redraw uploads only its dirty rectangle) |
|
|
288
310
|
| `webglDraws`, `webglPasses`, `webglPipelineMisses`, `webglBufferUploadBytes` | WebGL draw calls, render passes opened, pipelines created and buffer bytes copied |
|
|
311
|
+
| `webglSetupMisses`, `webglSamplerBinds`, `webglStateBinds` | prepared-draw cache misses, sampler-set binds and dynamic-state binds; a steady scene misses only on layouts it has not seen and binds samplers when the texture/uniform set actually changes |
|
|
289
312
|
|
|
290
313
|
Every field except the `*Ms` timings is cumulative, so subtract two snapshots to
|
|
291
314
|
get one frame. `restyleMs` covers the cascade **and** the layout pass it
|
|
@@ -296,7 +319,17 @@ at a time the window server chooses, and a deferred present replays work an
|
|
|
296
319
|
earlier frame built when no swapchain image was available (`starvedFrames` counts
|
|
297
320
|
those frames — a climbing value means the window is not being updated at all).
|
|
298
321
|
`XT_GUI_PERF=1` prints the same numbers on stderr (one line per frame;
|
|
299
|
-
`XT_GUI_PERF=<N>` averages over N frames)
|
|
322
|
+
`XT_GUI_PERF=<N>` averages over N frames), including `script=`, `gldraw=` and
|
|
323
|
+
`gluni=` for the page's own work.
|
|
324
|
+
|
|
325
|
+
Two environment variables shape how a program is driven. `XT_GUI_URL` supplies
|
|
326
|
+
the page's initial `location`: a bare `?query`, a `#hash`, or
|
|
327
|
+
`path?query#hash` (the origin stays `xbintsc://localhost`). A compiled program
|
|
328
|
+
has no address bar, so this is how a browser build's `?bench=1`, `?q=low` or
|
|
329
|
+
`#shot` entry points stay reachable. `XT_GUI_FRAME_MS` overrides the `run()`
|
|
330
|
+
frame period: unset follows the display refresh rate, a positive value fixes the
|
|
331
|
+
period and `0` restores the historical uncapped loop (for benchmarks and tests
|
|
332
|
+
that want the old timing).
|
|
300
333
|
|
|
301
334
|
They are used by `tests/e2e/gui-*.test.ts` to assert parsing, selector matching,
|
|
302
335
|
specificity, inheritance, `!important` and layout geometry. They will stay useful
|
package/doc/gui/build.md
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
- Sources live in `runtime/ext_gui/` (C/C++) plus vendored libs under `vendor/`
|
|
7
7
|
(gitignored; fetched on demand). `npm run vendor` fetches the pinned
|
|
8
8
|
stb/NanoSVG headers (and the miniz/SQLite sources the link features compile);
|
|
9
|
-
`npm run gui` fetches
|
|
10
|
-
|
|
9
|
+
`npm run gui` fetches the vendored sources it compiles (stb, NanoSVG, miniz,
|
|
10
|
+
plus Brotli and woff2 for `webfonts`).
|
|
11
|
+
Media decoding lives in `runtime/xt_media/` and is built separately.
|
|
11
12
|
- `npm run gui` (`scripts/build-gui.ts`) fetches a pinned SDL3 (`SDL3_TAG`,
|
|
12
13
|
default `release-3.2.10`), builds a static SDL3, fetches and builds static
|
|
13
14
|
**FreeType** (`FREETYPE_VERSION`, default `2.13.3`) and **HarfBuzz**
|
|
@@ -15,16 +16,21 @@
|
|
|
15
16
|
and fetches and builds static **glslang** (`GLSLANG_VERSION`, default
|
|
16
17
|
`16.6.0`) against the pinned SPIR-V headers (`SPIRV_HEADERS_VERSION`), and —
|
|
17
18
|
**on macOS only** — **SPIRV-Cross** (`SPIRV_CROSS_VERSION`, default
|
|
18
|
-
`vulkan-sdk-1.4.313.0`).
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
`vulkan-sdk-1.4.313.0`). It also fetches the **Brotli** sources
|
|
20
|
+
(`BROTLI_VERSION`, default `1.1.0`) and the **woff2** reference decoder
|
|
21
|
+
(`WOFF2_VERSION`, default `1.0.2`) and compiles both — plus miniz's inflater —
|
|
22
|
+
into the archive for the optional `webfonts` feature. glslang is the runtime
|
|
23
|
+
GLSL ES compiler behind WebGL and SPIRV-Cross turns its SPIR-V into MSL for
|
|
24
|
+
the Metal backend (see [WebGL](./webgl.md)); both are merged into the archive
|
|
25
|
+
like the other libraries. Metal is the only SDL_GPU backend that consumes MSL,
|
|
26
|
+
so on Windows/Linux the script neither fetches nor merges SPIRV-Cross:
|
|
23
27
|
`webgl_msl.cpp` compiles to nothing there and the ~2.5 MiB it contributes
|
|
24
28
|
would be unreachable. The default text path uses the bundled
|
|
25
29
|
**stb_truetype** (`vendor/stb/stb_truetype.h`); HarfBuzz + FreeType are
|
|
26
|
-
only extracted when the `shaping` feature is active
|
|
27
|
-
|
|
30
|
+
only extracted when the `shaping` feature is active, and miniz/Brotli/woff2
|
|
31
|
+
only when `webfonts` is.
|
|
32
|
+
Every library (SDL3, FreeType, HarfBuzz, glslang, SPIRV-Cross, Brotli, woff2
|
|
33
|
+
and the engine)
|
|
28
34
|
is compiled with `-ffunction-sections -fdata-sections`, and SDL is configured
|
|
29
35
|
without the subsystems the engine never calls (`SDL_JOYSTICK`, `SDL_HAPTIC`,
|
|
30
36
|
`SDL_SENSOR`, `SDL_CAMERA`, `SDL_RENDER`, `SDL_OPENGL`/`SDL_OPENGLES`,
|
|
@@ -57,11 +63,14 @@
|
|
|
57
63
|
- `src/extensions/gui/index.ts` exposes the engine archive through
|
|
58
64
|
`nativeObjects()` (via `findRuntimeLibrary`, so `.a`/`.lib` both work) and the
|
|
59
65
|
OS frameworks through `linkerFlags()`. Its `linkFeatures()` (in
|
|
60
|
-
`src/extensions/gui/features.ts`) declares `media`, `gpu`, `images`, `shaping
|
|
61
|
-
compiles their bridges only when a feature
|
|
66
|
+
`src/extensions/gui/features.ts`) declares `media`, `gpu`, `images`, `shaping`,
|
|
67
|
+
`webfonts` and `webgl`; the driver compiles their bridges only when a feature
|
|
68
|
+
is active.
|
|
62
69
|
- glslang (and SPIRV-Cross on macOS) is merged into `gui.a` like SDL3, but the
|
|
63
70
|
engine reaches it only through the `gpu` feature's dispatch table. A program
|
|
64
|
-
that never compiles GLSL does not extract those archive members.
|
|
71
|
+
that never compiles GLSL does not extract those archive members. The same
|
|
72
|
+
holds for the miniz/Brotli/woff2 objects: they answer only the `webfonts`
|
|
73
|
+
decoder table.
|
|
65
74
|
- `scripts/build-gui.ts` compiles with the *same* clang the driver resolves
|
|
66
75
|
(`src/driver/toolchain-provider.ts`); on Windows that is the MSVC-targeting
|
|
67
76
|
LLVM bundled with Visual Studio, and its sibling `clang++`/`llvm-ar` are used
|
|
@@ -129,8 +138,8 @@
|
|
|
129
138
|
|
|
130
139
|
## Link features
|
|
131
140
|
|
|
132
|
-
`gui` is the only user-facing extension, but
|
|
133
|
-
features** selected per program:
|
|
141
|
+
`gui` is the only user-facing extension, but several heavy halves are **optional
|
|
142
|
+
link features** selected per program:
|
|
134
143
|
|
|
135
144
|
| Feature | What it links | Selected when the program may use it |
|
|
136
145
|
| --- | --- | --- |
|
|
@@ -138,6 +147,7 @@ features** selected per program:
|
|
|
138
147
|
| `gpu` | `gpu_bridge.c` (the implementation is already in `gui.a`) | a `getContext("webgl"/"webgl2"/"experimental-webgl")` (or a kind decided at run time), any `webgl` string, `mix-blend-mode`/`mixBlendMode`, or runtime-built markup |
|
|
139
148
|
| `images` | `image_bridge.c` (the implementation is already in `gui.a`) | `<img>`, inline `<svg>`, `background-image`/`url(...)`, a `.svg` path, `drawImage`/`createImageBitmap`/`Image`, or runtime-built markup |
|
|
140
149
|
| `shaping` | `text_bridge.c` (the implementation is already in `gui.a`) | non-ASCII text (CJK/Cyrillic/Greek/…), an escaped/entity codepoint, an author `@font-face` rule (custom fonts may be CFF/OTF), or runtime-built markup |
|
|
150
|
+
| `webfonts` | `webfont_bridge.c` (the implementation is already in `gui.a`) | a `.woff`/`.woff2` source in the program's HTML/CSS, or runtime-built markup |
|
|
141
151
|
| `webgl` | `webgl_bridge.c` (the implementation is already in `gui.a`; requires `gpu`) | a WebGL `getContext(...)`, a `webgl` string, or runtime-built markup |
|
|
142
152
|
|
|
143
153
|
The driver scans the bundled AST (`src/driver/usage.ts`): every string literal
|
|
@@ -165,6 +175,11 @@ build** and links it before `gui.a`:
|
|
|
165
175
|
`TextApi` via `text_hb.cpp`, which references HarfBuzz and FreeType. Without
|
|
166
176
|
it the engine uses the built-in stb_truetype backend, so a Latin-only page
|
|
167
177
|
links neither library.
|
|
178
|
+
- `webfonts` → `runtime/ext_gui/webfont_bridge.c`; its constructor installs the
|
|
179
|
+
WOFF/WOFF2 decoder via `text_webfont.cpp`, which references miniz's inflater,
|
|
180
|
+
Brotli and the woff2 reference decoder. Without it the font loader returns
|
|
181
|
+
only plain sfnt files, so a page that names `.ttf`/`.otf` faces links none of
|
|
182
|
+
the three and a compressed source is skipped with a warning.
|
|
168
183
|
- `webgl` → `runtime/ext_gui/webgl_bridge.c`; its constructor installs
|
|
169
184
|
`XtWebglApi` via `webgl_feature.cpp`, which references the WebGL context and
|
|
170
185
|
DOM bindings. The core reaches `getContext`, the canvas width/height setters,
|
|
@@ -176,7 +191,7 @@ no bridge, the engine's table stays null and the implementation members are neve
|
|
|
176
191
|
extracted. That is why the large libraries can stay in the existing archives
|
|
177
192
|
without a new package layout.
|
|
178
193
|
|
|
179
|
-
Overrides: `--feature media,gpu,images,shaping,webgl` (or `all`) forces a
|
|
194
|
+
Overrides: `--feature media,gpu,images,shaping,webfonts,webgl` (or `all`) forces a
|
|
180
195
|
feature on; `--no-feature media` keeps it out even when detection finds a use.
|
|
181
196
|
`webgl` requires `gpu`, and the resolver activates both together. An app icon
|
|
182
197
|
forces `images` because the icon is decoded through the same pipeline. `--ext media`
|
|
@@ -203,6 +218,10 @@ relative ranking is the same.
|
|
|
203
218
|
|
|
204
219
|
WebGL and images/SVG are link features (roughly 0.4 MiB of WebGL context/DOM
|
|
205
220
|
code and 0.23 MiB of stb_image/NanoSVG that a DOM-only page does not link).
|
|
221
|
+
WOFF/WOFF2 decompression is one too (roughly 0.45 MiB: Brotli's decoder and its
|
|
222
|
+
~120 KiB static dictionary, the woff2 table reconstruction, and miniz's
|
|
223
|
+
inflater). A page whose fonts are system or `.ttf`/`.otf` files never links it,
|
|
224
|
+
while a `.woff2` source adds that much to the binary.
|
|
206
225
|
Canvas2D, Web Audio and the `mix-blend-mode` compositor are not gated yet; a
|
|
207
226
|
program that uses none of them still pays for their API surface (roughly
|
|
208
227
|
0.1–0.2 MiB each).
|
package/doc/gui/dom.md
CHANGED
|
@@ -31,7 +31,8 @@ combinators (descendant, child, adjacent and general sibling), the pseudo-classe
|
|
|
31
31
|
(the focused element and its ancestors) and `:active` (see
|
|
32
32
|
[Input](./input.md)), and the pseudo-elements `::before`/`::after`
|
|
33
33
|
(legacy `:before`/`:after` too). Values: lengths (`px`, `%`, `em`, `rem`, `vw`,
|
|
34
|
-
`vh`, `
|
|
34
|
+
`vh`, `ch` — half an `em`, the advance of "0" approximated without the face's
|
|
35
|
+
glyph metrics — `pt`, `pc`, `in`, `cm`, `mm`, `q`), colors (hex, `rgb()`/`rgba()`, a named
|
|
35
36
|
subset), numbers, keywords and shorthands (`margin`/`padding`/`border`/`flex`/
|
|
36
37
|
`font`/`outline`). `display: inline-flex`/`inline-grid` make a flex/grid
|
|
37
38
|
container inline-level; `grid-area`, `aspect-ratio`, `letter-spacing`,
|
|
@@ -108,7 +109,7 @@ or a cell repeated on every row appears once. The parser/cascade path reports:
|
|
|
108
109
|
`draggable`, `autofocus`, `hidden`, and the SVG
|
|
109
110
|
`filter`/`mask`/`clip-path`/`marker-*` attributes.
|
|
110
111
|
- **CSS properties** outside the subset, and **length units** the parser does
|
|
111
|
-
not implement (`
|
|
112
|
+
not implement (`ex`, `vmin`, `dvh`, …). A recognised property with an
|
|
112
113
|
unparsable value is not reported as unsupported; only the property name is
|
|
113
114
|
checked.
|
|
114
115
|
- **CSS at-rules** other than `@media`, `@font-face` and `@keyframes` (including
|
package/doc/gui/known-issues.md
CHANGED
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
rendered as colour. This is the price of the ~3 MiB DOM-only binary; the
|
|
182
182
|
optional `shaping` feature restores HarfBuzz + FreeType (and full
|
|
183
183
|
complex-script shaping).
|
|
184
|
-
- **Link-feature detection is static.** `media`/`gpu`/`images`/`shaping`/`webgl` are selected from the
|
|
184
|
+
- **Link-feature detection is static.** `media`/`gpu`/`images`/`shaping`/`webfonts`/`webgl` are selected from the
|
|
185
185
|
bundled HTML/CSS/TS (including imported `.html` and the CSS inlined from it).
|
|
186
186
|
A page that builds markup or CSS from runtime data (`fetch`, `readFileSync`,
|
|
187
187
|
a value returned by a function) cannot be seen; the scanner falls back to
|
package/doc/gui/layout.md
CHANGED
|
@@ -34,9 +34,12 @@ with absolute (viewport-relative) geometry:
|
|
|
34
34
|
largest prefix the remaining line can hold. `text-decoration` parses its
|
|
35
35
|
line/style/colour components and paints underline, overline and line-through
|
|
36
36
|
as solid rules (dashed/dotted/wavy are reported computed but painted solid).
|
|
37
|
-
- **Flexbox** — `row`/`column` (and the `-reverse` variants) with `gap
|
|
37
|
+
- **Flexbox** — `row`/`column` (and the `-reverse` variants) with `gap` (one
|
|
38
|
+
value, or `<row> <column>`),
|
|
38
39
|
`flex-basis`/`flex-grow`/`flex-shrink`, `justify-content` and `align-items`
|
|
39
|
-
(including `stretch` when the cross size is definite
|
|
40
|
+
(including `stretch` when the cross size is definite, and on a single-line
|
|
41
|
+
auto-height container where the line takes its tallest item's cross size). On
|
|
42
|
+
both axes the main
|
|
40
43
|
size comes from `flex-basis` (or the measured size when it is `auto`), positive
|
|
41
44
|
free space is split by `flex-grow` and a deficit by `flex-shrink`, and an
|
|
42
45
|
item's `align-self` overrides the container's `align-items`. `flex-wrap: wrap`
|
|
@@ -91,7 +94,10 @@ with absolute (viewport-relative) geometry:
|
|
|
91
94
|
positioned ancestor — the viewport when there is none. An `auto` inset keeps
|
|
92
95
|
the static position on that axis, an `auto` width is shrink-to-fit unless both
|
|
93
96
|
`left` and `right` are set (then it fills the space between them), and
|
|
94
|
-
percentages resolve against the containing block.
|
|
97
|
+
percentages resolve against the containing block. Static boxes in between do
|
|
98
|
+
not change the containing block, and its insets are applied again once the
|
|
99
|
+
ancestor's height is final, so `bottom: 0` inside a wrapper is not placed
|
|
100
|
+
against the wrapper's zero height. Stacking is approximated by
|
|
95
101
|
sorting each parent's children by `z-index` (negative → `auto` → positive)
|
|
96
102
|
before painting; this is a single level, not a full stacking context, so a
|
|
97
103
|
child cannot escape its parent's level.
|
package/doc/gui/rendering.md
CHANGED
|
@@ -200,8 +200,10 @@ backend table. The default backend is the bundled **stb_truetype**
|
|
|
200
200
|
(`text_stb.cpp`, `vendor/stb/stb_truetype.h`). The optional **`shaping`**
|
|
201
201
|
link feature installs `text_hb.cpp`, a HarfBuzz + FreeType backend, and is
|
|
202
202
|
selected automatically for non-ASCII text or an author `@font-face` rule. Both
|
|
203
|
-
backends share the font database in `text_font_db.cpp` (discovery and indexing)
|
|
204
|
-
|
|
203
|
+
backends share the font database in `text_font_db.cpp` (discovery and indexing),
|
|
204
|
+
the CSS matcher in `text_fonts.cpp`, the font-bytes cache in
|
|
205
|
+
`text_font_bytes.cpp` (which decompresses WOFF/WOFF2 through the optional
|
|
206
|
+
**`webfonts`** link feature) and the sfnt metadata reader in
|
|
205
207
|
`text_font_sfnt.cpp`, so a CSS style resolves to the same real face whichever
|
|
206
208
|
shaper is linked.
|
|
207
209
|
|
|
@@ -214,16 +216,28 @@ shaper is linked.
|
|
|
214
216
|
family without an italic face uses its upright face — there is no synthetic
|
|
215
217
|
bold or oblique. Faces are cached per `(file, collection index, size)`.
|
|
216
218
|
`XT_GUI_FONT` / `XT_GUI_FONT_MONO` still override the generic defaults.
|
|
217
|
-
- Author **`@font-face`** rules load local
|
|
218
|
-
|
|
219
|
+
- Author **`@font-face`** rules load local font files in every container the
|
|
220
|
+
engine understands: sfnt faces (`.ttf`, `.ttc`, `.otf`, `.otc`) directly, and
|
|
221
|
+
the compressed webfont formats (`.woff`, `.woff2`) through the optional
|
|
222
|
+
**`webfonts`** link feature, which decompresses the file to a plain sfnt
|
|
223
|
+
before either backend — or the metadata reader — sees it. The feature is
|
|
224
|
+
selected automatically when the program's HTML/CSS names a `.woff`/`.woff2`
|
|
225
|
+
source (or the markup is runtime-built); `--no-feature webfonts` keeps it out,
|
|
226
|
+
and a compressed source is then skipped with a warning instead of silently
|
|
227
|
+
falling through. Both the metadata read and the glyph load use the same
|
|
228
|
+
decoded bytes, so a WOFF2 face has exactly the metrics of its `.ttf` original.
|
|
229
|
+
The `src` list is tried from left to right; `local(...)`, remote and
|
|
219
230
|
`data:` entries are skipped. A relative URL is a local `file:` path resolved
|
|
220
231
|
against the process working directory — the same policy as image sources — and
|
|
221
232
|
`file://` URLs (including percent-encoded paths) are accepted. The
|
|
222
233
|
`font-weight`/`font-style` descriptors select the face; a weight range
|
|
223
234
|
(`font-weight: 100 900`) is honoured, and later rules with the same family and
|
|
224
235
|
descriptors replace earlier ones. CSS matches the declared family name even
|
|
225
|
-
when it differs from the font file's internal name.
|
|
226
|
-
|
|
236
|
+
when it differs from the font file's internal name. The `format(...)` hint is
|
|
237
|
+
advisory: the container is detected from the file's signature, so a mislabelled
|
|
238
|
+
source still loads when its bytes are a format the engine can decode. When no
|
|
239
|
+
source is readable the family simply falls through to the next family in the
|
|
240
|
+
CSS list.
|
|
227
241
|
- The default candidates prefer a **CJK-capable TrueType/TTC** face (Microsoft
|
|
228
242
|
YaHei on Windows, PingFang/STHeiti on macOS, Noto Sans CJK/WenQuanYi on Linux)
|
|
229
243
|
before the Latin-only ones. A family's weight/style variants are resolved
|
|
@@ -268,8 +282,11 @@ lays it out, rebuilds the display list and uploads vertex arrays; a frame that
|
|
|
268
282
|
changes nothing does no CPU or GPU work. A document with thousands of elements
|
|
269
283
|
is kept interactive by budgeting each stage, and every stage is measured. Set
|
|
270
284
|
`XT_GUI_PERF=1` to print one line per frame (or `XT_GUI_PERF=<N>` for an
|
|
271
|
-
aggregated line every N frames);
|
|
272
|
-
|
|
285
|
+
aggregated line every N frames); the line separates the page's own callback time
|
|
286
|
+
(`script`), the WebGL recording inside it (`gldraw`, `gluni`) and the retained
|
|
287
|
+
pipeline stages, and includes `setupMiss`/`samplerBinds`/`stateBinds` for the
|
|
288
|
+
WebGL draw path. `win.stats()` returns the same counters, which is what
|
|
289
|
+
`tests/e2e/gui-perf.test.ts` asserts on.
|
|
273
290
|
|
|
274
291
|
- **Cascade.** An `@media` prelude is evaluated **once per rule** per restyle
|
|
275
292
|
(it used to be parsed once per rule *and* node, which was the largest cost on
|
|
@@ -277,6 +294,17 @@ is what `tests/e2e/gui-perf.test.ts` asserts on.
|
|
|
277
294
|
content entirely, the declaration candidate list is reused across the
|
|
278
295
|
depth-first walk instead of allocated per element, and `:hover`/`:focus` only
|
|
279
296
|
restyle when the sheet actually has such a rule.
|
|
297
|
+
- **Computed style allocation.** `computeNode` writes into the style map entry
|
|
298
|
+
in place instead of building a local style and copy-assigning it, and a style
|
|
299
|
+
inherits the parent's custom-property map by **shared pointer** (copy-on-write
|
|
300
|
+
only when the node declares its own `--x`). A token-heavy `:root` block
|
|
301
|
+
therefore no longer costs one deep property-map copy per element per restyle.
|
|
302
|
+
- **One display update per frame.** When the document is already dirty,
|
|
303
|
+
`advance()` only moves the clock: the pending `restyle()` is about to call
|
|
304
|
+
`updateDisplay()` with the same time, so the old path rebuilt the displayed
|
|
305
|
+
style map (and the layout) twice on every dirty frame of an animating page —
|
|
306
|
+
the normal case for a HUD that rewrites a transform every frame while a
|
|
307
|
+
transition runs.
|
|
280
308
|
- **Text.** Layout and paint share a bounded shaping cache (`text_cache.cpp`):
|
|
281
309
|
`(face, text) -> glyphs + advance`. It uses two generations of up to 2 MiB of
|
|
282
310
|
glyphs / 8,192 entries; when a generation is full the *spare* one is dropped
|
|
@@ -333,6 +361,15 @@ is what `tests/e2e/gui-perf.test.ts` asserts on.
|
|
|
333
361
|
upload per frame, no steady-state pipeline creation, only the dirty bytes), so
|
|
334
362
|
the wall-clock numbers stay informational and a software GPU in CI is not
|
|
335
363
|
penalised.
|
|
364
|
+
- **WebGL draw path.** A prepared draw is keyed by the bound VAO's identity and
|
|
365
|
+
its own revision, so binding the same geometry on a later frame keeps the
|
|
366
|
+
cached pipeline/layout (the key used to include the context-wide counter that
|
|
367
|
+
every VAO bind bumps, which rebuilt every prepared draw once per frame).
|
|
368
|
+
Viewport, scissor, blend constants and the sampler set are only re-recorded
|
|
369
|
+
when they actually change in the current pass, and a `Float32Array` uniform is
|
|
370
|
+
copied as raw bytes instead of being expanded into a `double` vector one
|
|
371
|
+
runtime call per element. `setupMiss`/`samplerBinds`/`stateBinds` in the perf
|
|
372
|
+
line report what is left.
|
|
336
373
|
|
|
337
374
|
Known limits: a mutation still restyles and relayouts the **whole** document
|
|
338
375
|
(there is no incremental subtree invalidation), and a paint-only change (for
|
package/doc/gui/runtime.md
CHANGED
|
@@ -39,6 +39,19 @@ swapchain image was available) is counted as `deferred`, and
|
|
|
39
39
|
prints what each frame did (see
|
|
40
40
|
[Performance](./rendering.md#performance-m20)).
|
|
41
41
|
|
|
42
|
+
`run()` also paces the loop to the display refresh rate (the mode of the
|
|
43
|
+
window's display; 60 Hz when the backend cannot report one). Before starting the
|
|
44
|
+
next frame it blocks on an `SDL_WaitEventTimeout` slice, dispatching events and
|
|
45
|
+
servicing the runtime's timers/microtasks while it waits, instead of draining
|
|
46
|
+
the `requestAnimationFrame` queue on every idle loop iteration — the old loop
|
|
47
|
+
ran a page's logic, WebGL recording and DOM updates hundreds of times per
|
|
48
|
+
second and asked the GPU for frames the compositor never showed. A frame that
|
|
49
|
+
overruns its slot starts the next one immediately (the deadline is clamped to
|
|
50
|
+
now, so a page slower than the display still runs as fast as it can).
|
|
51
|
+
`XT_GUI_FRAME_MS` overrides the period: unset follows the refresh rate, a
|
|
52
|
+
positive value fixes it and `0` restores the historical uncapped loop (tests and
|
|
53
|
+
benchmarks that want the old timing).
|
|
54
|
+
|
|
42
55
|
The `xt_loop_set_main` hook remains available for hosts that want to own the
|
|
43
56
|
loop themselves.
|
|
44
57
|
|
package/doc/gui/webgl.md
CHANGED
|
@@ -60,6 +60,14 @@ reports the type as well.
|
|
|
60
60
|
wrote it. `blitFramebuffer` between the two kinds cannot use
|
|
61
61
|
`SDL_BlitGPUTexture` (its copy cannot reverse rows), so it draws a sampling
|
|
62
62
|
pass instead; a blit between two targets of the same kind keeps the GPU blit.
|
|
63
|
+
- A user framebuffer's depth attachment starts **cleared to 1.0** (stencil 0),
|
|
64
|
+
as WebGL specifies, even if the page never calls `clear`. The first
|
|
65
|
+
render pass that uses a fresh depth renderbuffer, depth texture or the
|
|
66
|
+
auto-created depth buffer, clears it; a depth-tested draw into a render
|
|
67
|
+
target the page did not clear therefore passes. three.js's
|
|
68
|
+
`PMREMGenerator` relies on this for its scene, cube-UV and blur passes —
|
|
69
|
+
without it every environment map comes out black, and so does every
|
|
70
|
+
surface lit only by the environment.
|
|
63
71
|
- A fixed-function state change (`blendFunc`, `depthFunc`, `cullFace`,
|
|
64
72
|
`colorMask`, …) changes which `SDL_GPUGraphicsPipeline` is needed, so
|
|
65
73
|
pipelines are created lazily and cached on the program. The key is the
|
|
@@ -210,6 +218,9 @@ available from GLSL ES 3.00, which is what the instanced example uses.
|
|
|
210
218
|
`STENCIL_BITS` is 8). `WEBGL_lose_context`'s `loseContext`/`restoreContext`
|
|
211
219
|
really drop and rebuild the context (every object becomes invalid) and
|
|
212
220
|
dispatch `webglcontextlost`/`webglcontextrestored`.
|
|
221
|
+
`KHR_parallel_shader_compile` is published with `COMPLETION_STATUS_KHR`;
|
|
222
|
+
shaders and programs are translated synchronously, so the completion query
|
|
223
|
+
is always `true` (a `compileAsync` poller finishes on its first tick).
|
|
213
224
|
- **Shaders and programs**: `createShader`, `shaderSource`, `compileShader`,
|
|
214
225
|
`getShaderParameter`, `getShaderInfoLog`, `getShaderSource`, `deleteShader`,
|
|
215
226
|
`createProgram`, `attachShader`, `detachShader`, `linkProgram`,
|
|
@@ -219,7 +230,9 @@ available from GLSL ES 3.00, which is what the instanced example uses.
|
|
|
219
230
|
`getAttribLocation`, `bindAttribLocation`.
|
|
220
231
|
- **Uniforms**: `uniform1f`…`uniform4f`, `uniform1i`…`uniform4i`,
|
|
221
232
|
`uniform1fv`…`uniform4fv`, `uniform1iv`…`uniform4iv`,
|
|
222
|
-
`uniformMatrix2fv`/`3fv`/`4fv`, `getUniform`.
|
|
233
|
+
`uniformMatrix2fv`/`3fv`/`4fv`, `getUniform`. The vector and matrix setters
|
|
234
|
+
accept both typed arrays and plain JavaScript arrays, like WebGL's
|
|
235
|
+
`sequence` arguments.
|
|
223
236
|
- **Buffers and attributes**: `createBuffer`, `bindBuffer`, `bufferData`,
|
|
224
237
|
`bufferSubData`, `deleteBuffer`, `getBufferParameter`,
|
|
225
238
|
`enableVertexAttribArray`, `disableVertexAttribArray`,
|
|
@@ -271,7 +284,7 @@ available from GLSL ES 3.00, which is what the instanced example uses.
|
|
|
271
284
|
clears only the scissor rectangle, for colour, depth and stencil), `blendColor`,
|
|
272
285
|
`blendFunc`/`blendFuncSeparate`,
|
|
273
286
|
`blendEquation`/`blendEquationSeparate`, `depthFunc`,
|
|
274
|
-
`depthMask`, `colorMask`, `stencilFunc`/`stencilFuncSeparate`,
|
|
287
|
+
`depthMask`, `depthRange`, `colorMask`, `stencilFunc`/`stencilFuncSeparate`,
|
|
275
288
|
`stencilOp`/`stencilOpSeparate`, `stencilMask`/`stencilMaskSeparate`,
|
|
276
289
|
`cullFace`, `frontFace`, `viewport`, `scissor`,
|
|
277
290
|
`pixelStorei`, `finish`. The stencil test takes part in rasterisation and
|
|
@@ -331,7 +344,12 @@ buffer. A vertex shader can sample textures just like a fragment shader:
|
|
|
331
344
|
`MAX_VERTEX_TEXTURE_IMAGE_UNITS` reports 16, vertex samplers live in set 0 and
|
|
332
345
|
are bound with `SDL_BindGPUVertexSamplers` on every draw. Depth values use the
|
|
333
346
|
backend's `[0, 1]` clip space rather than GL's `[-1, 1] → [0, 1]` remap:
|
|
334
|
-
`gl_Position.z = 0.5` stores depth `0.5` (real WebGL stores `0.75`).
|
|
347
|
+
`gl_Position.z = 0.5` stores depth `0.5` (real WebGL stores `0.75`). `depthRange`
|
|
348
|
+
narrows that space through the SDL_GPU viewport's depth bounds, which apply to
|
|
349
|
+
the depth test and the depth write alike: after rendering the world at the
|
|
350
|
+
default range, a first-person renderer draws its view model with
|
|
351
|
+
`depthRange(0, 0.05)` and it lands in the first 5% of the buffer, in front of
|
|
352
|
+
everything the world wrote.
|
|
335
353
|
|
|
336
354
|
## Not implemented
|
|
337
355
|
|
|
@@ -387,6 +405,14 @@ SPIRV-Cross, nor any `webgl_*` member (see [Link features](./build.md#link-featu
|
|
|
387
405
|
- `tests/e2e/gui-webgl2-blit.test.ts` covers scissored colour/depth clears,
|
|
388
406
|
framebuffer blits, and the pixels around a partial blit that must survive
|
|
389
407
|
(a destination load-op that discards them fails there on Metal).
|
|
408
|
+
- `tests/e2e/gui-webgl-depth-init.test.ts` covers a depth-tested draw into a
|
|
409
|
+
render target the page never depth-cleared, and `uniform1fv` with a plain
|
|
410
|
+
JavaScript array — the two WebGL behaviours three.js's `PMREMGenerator`
|
|
411
|
+
needs for a non-black environment map.
|
|
412
|
+
- `tests/e2e/gui-webgl-depth-range.test.ts` covers `depthRange`: the default
|
|
413
|
+
range leaves the depth order alone, a narrowed range pulls a farther fragment
|
|
414
|
+
in front, the range also rewrites the depth a fragment writes, and
|
|
415
|
+
`getParameter(DEPTH_RANGE)` reports the live values.
|
|
390
416
|
- `tests/e2e/gui-media.test.ts` also uploads the latest decoded `<video>` frame
|
|
391
417
|
as a texture and reads it back.
|
|
392
418
|
- `tests/e2e/gui-webgl2-3d.test.ts` covers 2D-array and 3D texture layer
|
package/doc/gui/webgpu.md
CHANGED
|
@@ -40,6 +40,22 @@ takes its fallback path.
|
|
|
40
40
|
data through `SDL_Push…UniformData`, not a bound buffer. `writeBuffer`
|
|
41
41
|
updates both the mirror and (when the buffer has GPU usage) the SDL buffer.
|
|
42
42
|
|
|
43
|
+
## Pass attachments
|
|
44
|
+
|
|
45
|
+
`loadOp`, `depthLoadOp` and `stencilLoadOp` keep WebGPU's meaning: `"load"`
|
|
46
|
+
preserves what an earlier pass stored, and it also disables SDL_GPU's texture
|
|
47
|
+
cycling, which would otherwise hand the pass a different internal allocation
|
|
48
|
+
and silently drop the previous contents. `stencilLoadOp` / `stencilStoreOp`
|
|
49
|
+
(including `"discard"`) are honoured.
|
|
50
|
+
|
|
51
|
+
WebGPU initialises every resource to zero, so a texture that no pass or copy
|
|
52
|
+
has written yet is zero-initialised on its first attachment: a pass that loads
|
|
53
|
+
it sees depth 0, stencil 0 and transparent black instead of uninitialised GPU
|
|
54
|
+
memory. This is the opposite of WebGL, where a fresh depth buffer starts at 1;
|
|
55
|
+
a WebGPU page that loads a never-written depth texture and tests `less` draws
|
|
56
|
+
nothing in a browser either, so WebGL's implicit-depth-clear behaviour (and the
|
|
57
|
+
`PMREMGenerator` dependency on it) does not carry over.
|
|
58
|
+
|
|
43
59
|
## WGSL
|
|
44
60
|
|
|
45
61
|
WGSL is translated to Vulkan-dialect GLSL, then compiled by the same bundled
|
|
@@ -119,3 +135,7 @@ available (the same rule as WebGL).
|
|
|
119
135
|
vertex/fragment pair, reads the canvas back through `copyTextureToBuffer`,
|
|
120
136
|
runs a compute shader over a storage buffer and checks an error scope and a
|
|
121
137
|
shader compilation message. Demo: `examples/gui/webgpu-triangle`.
|
|
138
|
+
|
|
139
|
+
`tests/e2e/gui-webgpu-attachment.test.ts` renders two passes into offscreen
|
|
140
|
+
colour/depth/stencil textures: the second pass loads what the first stored, and
|
|
141
|
+
a first pass that loads a never-written texture reads WebGPU's zeroes.
|
package/doc/gui.md
CHANGED
|
@@ -142,18 +142,22 @@ with `nativeObjects()`, `linkerFlags()` and `modules()`.
|
|
|
142
142
|
| Window + input + multi-window | **SDL3** | cross-platform windows, HiDPI, IME, clipboard, DnD, close/hide events |
|
|
143
143
|
| GPU | **SDL_GPU** (SDL3) | one render path over Metal / Vulkan / D3D12; avoids three backends |
|
|
144
144
|
| Text shaping | **stb_truetype** simple shaper; optional **`shaping`** feature links HarfBuzz + FreeType | default keeps the DOM-only binary near 3 MiB; `shaping` restores ligatures and complex-script shaping |
|
|
145
|
+
| Webfont decoding | **miniz** + **Brotli** + the **woff2** reference decoder (vendored; optional **`webfonts`** feature) | `@font-face` sources in WOFF/WOFF2 decompress to sfnt once at load, so both text backends read the same bytes; plain-sfnt pages link none of it |
|
|
145
146
|
| Glyph raster | **stb_truetype**; FreeType only under `shaping` | TrueType outlines → grayscale atlas by default |
|
|
146
147
|
| Images | **stb_image** (vendored header) for bitmaps, **NanoSVG** (vendored headers) for SVG | single headers to start; SVG files rasterise on demand |
|
|
147
148
|
| Video + audio | **FFmpeg** (statically vendored, minimal build, optional `media` link feature) | decodes the common container/codec set; no WebView or platform media framework |
|
|
148
149
|
|
|
149
150
|
Pinned versions: SDL3 `release-3.2.10`, FreeType `2.13.3`, HarfBuzz `10.1.0`
|
|
150
151
|
(for the optional `shaping` feature), glslang `16.6.0`, SPIRV-Cross
|
|
151
|
-
`vulkan-sdk-1.4.313.0`,
|
|
152
|
+
`vulkan-sdk-1.4.313.0`, Brotli `1.1.0` and woff2 `1.0.2` (for the optional
|
|
153
|
+
`webfonts` feature), FFmpeg `7.1` for the optional `media` archive
|
|
152
154
|
(overridable with `SDL3_TAG` / `FREETYPE_VERSION` / `HARFBUZZ_VERSION` /
|
|
153
|
-
`GLSLANG_VERSION` / `SPIRV_CROSS_VERSION` / `
|
|
155
|
+
`GLSLANG_VERSION` / `SPIRV_CROSS_VERSION` / `BROTLI_VERSION` / `WOFF2_VERSION` /
|
|
156
|
+
`FFMPEG_VERSION`). The default text
|
|
154
157
|
backend is the bundled `vendor/stb/stb_truetype.h`; it accepts TrueType outlines (not
|
|
155
158
|
CFF/OTF or variable fonts). The `shaping` feature swaps in HarfBuzz + FreeType
|
|
156
|
-
for full OpenType shaping
|
|
159
|
+
for full OpenType shaping, and the `webfonts` feature decompresses author
|
|
160
|
+
`.woff`/`.woff2` sources before either backend reads them.
|
|
157
161
|
|
|
158
162
|
Alternative if SDL3 is rejected: **GLFW + OpenGL 3.3** (simpler, but OpenGL is
|
|
159
163
|
deprecated on macOS and gives no modern GPU abstraction). **wgpu-native** if the
|
|
@@ -186,7 +190,8 @@ engine were Rust.
|
|
|
186
190
|
(`measureText`/`fontMetrics`); the CSS family list, weight and italic style
|
|
187
191
|
select real installed faces, and author `@font-face` rules load local font
|
|
188
192
|
files (relative URLs resolve as `file:` paths against the process working
|
|
189
|
-
directory)
|
|
193
|
+
directory), including WOFF/WOFF2 sources through the `webfonts` link
|
|
194
|
+
feature. Originally HarfBuzz + FreeType, now the bundled stb_truetype.
|
|
190
195
|
- **M4b-2 — glyph rendering** ✅ stb_truetype rasterisation, a shared shelf-packed
|
|
191
196
|
glyph atlas, textured text quads in the display list and HiDPI-aware raster
|
|
192
197
|
scaling. Gradients remain.
|