Commit 81085fe
fix: suppress frame:ready until full LOD update after param changes (#8602)
When gsplat params change (e.g. splatBudget), the frame:ready event could
report ready=true before the LOD system had fully reacted — especially with
GPU sorting where sortedVersion catches up in the same frame. This made it
impossible for consumers to reliably detect the not-ready→ready transition.
Add _awaitingLodUpdate flag that suppresses ready=true until a fullUpdate
cycle runs (which polls load completions and re-evaluates LODs). The flag
is only set when octree instances exist, so non-streaming scenarios are
unaffected.
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>1 parent 8c15533 commit 81085fe
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
| |||
1161 | 1170 | | |
1162 | 1171 | | |
1163 | 1172 | | |
1164 | | - | |
| 1173 | + | |
1165 | 1174 | | |
1166 | 1175 | | |
1167 | 1176 | | |
| |||
1372 | 1381 | | |
1373 | 1382 | | |
1374 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
1375 | 1386 | | |
1376 | 1387 | | |
1377 | 1388 | | |
| |||
1404 | 1415 | | |
1405 | 1416 | | |
1406 | 1417 | | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
1407 | 1424 | | |
1408 | 1425 | | |
1409 | 1426 | | |
| |||
0 commit comments