Validation workaround `wait-for-readiness`: Scene readiness misses utility layers, GUI images, sprite metadata

Aperta
#2,005 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@bkaradzic-microsoft ci sta già lavorando.

Dal 3/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Affected tests (17)

  • GLTF Extension KHR_materials_volume with attenuation
  • Nested BBG
  • GUI3D SpherePanel
  • Nested BBG
  • GUI Near Menu
  • Gizmos
  • GLTF Serializer KHR punctual light, left-handed
  • GLTF Serializer KHR punctual light, right-handed
  • Particles
  • MultiSample render targets
  • Prepass SSAO + particles
  • Thin instances + motion blur
  • Thin instances + render self motion blur
  • Bones and morphs computation order
  • GUI Images in Grid
  • Sprites Pixel Perfect
  • Command encoder order in WebGPU 1

What the workaround does

Before capture, waits additionally for utility-layer scenes, GUI AdvancedDynamicTexture image loads, SpriteManager packed-JSON metadata and pending material effects. scene.executeWhenReady does not cover these, so the first captured frame can be missing content (gizmos, GUI images, sprites). Introduced in #1890 / #1920. Note: #1920 observed these tests passing locally with the workaround disabled, so several assignments may be precautionary.

Recommended fix

  1. Re-measure each test with the workaround disabled (multiple runs, all platforms) and drop it where not needed.
  2. For the remainder, fix in Babylon.js so Scene.isReady() / executeWhenReady accounts for: utility-layer scenes (UtilityLayerRenderer.utilityLayerScene), GUI ADT image loading (Image control onImageLoadedObservable → scene.addPendingData), and SpriteManager/SpriteMap packed JSON (addPendingData). This benefits the browser too, which currently relies on timing.
  3. If a case is purely a snippet that doesn't await its own loads, fix the snippet (update both Babylon.js and BN config.json).

Workaround implementations live in Apps/Playground/Scripts/validation_native.js (WORKAROUNDS map); tests opt in via the workarounds array in Apps/Playground/Scripts/config.json. See Documentation/AddingNewValidationTests.md.

Lingua principale
C++
Stelle
931
Fork
169
Merge medio
2g 17h
PR unite (30g)
66

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BabylonJS/BabylonNative

Tutte le issue di BabylonJS/BabylonNative

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.