Validation workaround `prime-effect-layers`: extra frame needed before capture when effect layers exist

オープン
#2,006 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@bkaradzic-microsoft がすでに取り組んでいます。

2026年11月3日 から。

評価

この issue はまだ評価されていません。

説明

Affected tests (10)

  • Glow layer and LODs
  • Attractors
  • Glow layer and LODs
  • Prepass SSAO + highlight layer
  • sphere-with-custom-shader-to-display-wireframe-using-glow-layer
  • dissolve-effect-with-node-material-and-glow-layer
  • Glow layer with vertex alpha
  • Particles - Attractors
  • Selection outline layer with instances
  • Selection outline layer with instances and LOD

What the workaround does

Renders one extra frame before capture when the scene has effect layers (GlowLayer / HighlightLayer). Without it, the first captured frame is missing the glow/highlight contribution on BN. Introduced in #1913.

Recommended fix

Root cause is not confirmed. Capture the first frame with RenderDoc and compare with the second:

  • If the effect-layer RTT is rendered after the main pass in the same frame (view ordering / submission order in NativeEngine / bgfx view IDs), fix view ordering in BN so RTTs are submitted before the views that sample them.
  • If the effect layer's isReady() returns true before its effects/merge effect are compiled, fix readiness in Babylon.js (EffectLayer.isReady / _shouldRender).
    Then remove the workaround.

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.

主要言語
C++
スター
931
フォーク
169
平均マージ
2日 17時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BabylonJS/BabylonNative のほかの issue

BabylonJS/BabylonNative の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。