Skip to content

Commit 577486a

Browse files
authored
Streaming fix (#122)
1 parent 437633f commit 577486a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viewer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class Viewer {
346346
// start in low quality mode so we can get user interacting asap
347347
gsplat.lodRangeMin = quality.low.range[0];
348348
gsplat.lodRangeMax = quality.low.range[1];
349-
gsplat.splatBudget = quality.low.splatBudget * 1000000;
349+
results[0].gsplat.splatBudget = quality.low.splatBudget * 1000000;
350350

351351
// these two allow LOD behind camera to drop, saves lots of splats
352352
gsplat.lodUpdateAngle = 90;
@@ -374,7 +374,7 @@ class Viewer {
374374
const settings = state.hqMode ? quality.high : quality.low;
375375
gsplat.lodRangeMin = settings.range[0];
376376
gsplat.lodRangeMax = settings.range[1];
377-
gsplat.splatBudget = settings.splatBudget * 1000000;
377+
results[0].gsplat.splatBudget = settings.splatBudget * 1000000;
378378
};
379379
events.on('hqMode:changed', updateLod);
380380
updateLod();

0 commit comments

Comments
 (0)