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

Đang mở
#2,005 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@bkaradzic-microsoft đang làm issue này rồi.

Từ ngày 3/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
C++
Star
931
Fork
169
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
66

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của BabylonJS/BabylonNative

Tất cả issue của BabylonJS/BabylonNative

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.