@ringozz/godot-web-wasm32 4.7.1-9 → 4.7.2-570
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/README.md
CHANGED
|
@@ -2,4 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Godot Engine compiled to **WebAssembly** (`wasm32`, no threads), plus the web adapter that boots it in the browser. Consumed by [`@ringozz/godot`](../godot/README.md) on platforms without a native addon (i.e. in the browser).
|
|
4
4
|
|
|
5
|
-
On web, `@ringozz/godot` dispatches here and this package initializes the engine with Emscripten + emnapi, binding it to a `<canvas
|
|
5
|
+
On web, `@ringozz/godot` dispatches here and this package initializes the engine with Emscripten + emnapi, binding it to a `<canvas>`.
|
|
6
|
+
|
|
7
|
+
## Symbolizing wasm stack traces
|
|
8
|
+
|
|
9
|
+
The package ships a symbol map next to the wasm: `gen/godot.web.template_release.wasm32.nothreads.js.symbols`
|
|
10
|
+
(included in the npm package via `files: ["gen/", ...]`). Each line maps a wasm function index to its original
|
|
11
|
+
name — `0:glTexParameteri`, `1:glBindBuffer`, … — so you can recover names from minified wasm stack traces.
|
|
12
|
+
Browsers render wasm frames as `wasm-function[N]`; look up `N:` in the file to get the name:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
# from a trace like "... at wasm-function[42]:1 ..."
|
|
16
|
+
grep '^42:' node_modules/@ringozz/godot-web-wasm32/gen/godot.web.template_release.wasm32.nothreads.js.symbols
|
|
17
|
+
# 42:SomeFunctionName
|
|
18
|
+
```
|