Skip to content

Update JsRuntimeHost to latest - #1854

Merged
bkaradzic-microsoft merged 1 commit into
BabylonJS:masterfrom
bkaradzic-microsoft:update/jsruntimehost-0d263627
Aug 27, 2026
Merged

Update JsRuntimeHost to latest#1854
bkaradzic-microsoft merged 1 commit into
BabylonJS:masterfrom
bkaradzic-microsoft:update/jsruntimehost-0d263627

Conversation

@bkaradzic-microsoft

Copy link
Copy Markdown
Member

Summary

Update JsRuntimeHost from cb988baa to 0d263627, picking up three fixes merged since the current pin:

  • BabylonJS/JsRuntimeHost#220 — prevent zero-delay setInterval from flooding and starving the JS dispatch queue. In BN this could indefinitely delay async shader-compilation continuations and hang scene readiness.
  • BabylonJS/JsRuntimeHost#230 — support UTF-16LE/UTF-16BE in TextDecoder, needed by Emscripten EXPORT_ES6 modules such as SPZ and CSG2/manifold.
  • BabylonJS/JsRuntimeHost#231 — preserve embedded NUL bytes in XHR string responses, needed for Emscripten modules with inline WASM payloads.

Validation

  • Configured Win32 x64 against the updated dependency and confirmed FetchContent resolved the exact pinned SHA.
  • Built the Debug Playground target successfully.
  • Ran the Nested BBG validation test, which exercises the timer-starvation regression path: 1/1 passed, exit 0.
  • The three upstream changes include their own focused JsRuntimeHost unit coverage.

Includes fixes for zero-delay setInterval queue starvation, XHR response
truncation at embedded NUL bytes, and UTF-16 TextDecoder support.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d47cbab2-d751-4cf9-984f-4412dd9ec601
Copilot AI lite review requested due to automatic review settings August 27, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the Babylon Native build’s pinned JsRuntimeHost FetchContent dependency to a newer upstream commit in order to pick up recent runtime fixes (timer queue starvation, additional TextDecoder UTF-16 support, and preserving embedded NUL bytes in XHR string responses).

Changes:

  • Bump JsRuntimeHost FetchContent_Declare GIT_TAG from cb988ba… to 0d26362….

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bkaradzic-microsoft
bkaradzic-microsoft merged commit f4c7104 into BabylonJS:master Aug 27, 2026
34 checks passed
bkaradzic-microsoft added a commit to bkaradzic-microsoft/BabylonNative that referenced this pull request Aug 27, 2026
Bring in i_data slot-overlap fix (BabylonJS#1852) and JsRuntimeHost pin (BabylonJS#1854 content
via shotgun fork). Keep shotgun JsRuntimeHost/SPIRV-Cross forks, fragCoord Y
flip, GPU instance repack, compute shader path, and playground enables.
Resolve config by preserving shotgun enablements and taking upstream OpenGL
CI exclusions where applicable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 60c2ec68-6de1-445d-9fc9-b699db737eae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants