Commit 3482d16
committed
fix(engine): poll for sub-composition timeline readiness before capture
The renderer now waits for all sub-composition timelines to be
registered in window.__timelines before starting frame capture.
Previously only window.__hf root readiness was checked, causing
blank frames when sub-compositions use async data loading (fetch)
or when the headless renderer starts capturing before scripts
complete.
Adds pollSubCompositionTimelines() to both screenshot and
beginFrame render paths, with a diagnostic warning listing which
composition IDs are missing if the timeout expires.1 parent ae1716d commit 3482d16
1 file changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
352 | 387 | | |
353 | 388 | | |
354 | 389 | | |
| |||
499 | 534 | | |
500 | 535 | | |
501 | 536 | | |
| 537 | + | |
| 538 | + | |
502 | 539 | | |
503 | 540 | | |
504 | 541 | | |
| |||
615 | 652 | | |
616 | 653 | | |
617 | 654 | | |
| 655 | + | |
| 656 | + | |
618 | 657 | | |
619 | 658 | | |
620 | 659 | | |
| |||
0 commit comments