@miris-inc/core 0.0.8-5ccc417 → 0.0.8-620ce84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/AquaApi.wasm CHANGED
Binary file
Binary file
package/dist/core.d.ts CHANGED
@@ -456,6 +456,7 @@ export declare class Miris {
456
456
  protected _xrSession: XRSession | null;
457
457
  protected _requestAnimationFrame: RequestAnimationFrameFn | null;
458
458
  signalResumeFromIdle(): void;
459
+ get _splatCountBudget(): number;
459
460
  /**
460
461
  * Why 43? Because the AVP throttles down to 45Hz :(
461
462
  */
package/dist/core.js CHANGED
@@ -1351,15 +1351,25 @@ var Miris = class {
1351
1351
  _xrSession = null;
1352
1352
  _requestAnimationFrame = null;
1353
1353
  signalResumeFromIdle() {}
1354
- #applyDisplaySettings() {
1354
+ #buildRuntimeSettings() {
1355
1355
  const settings = new this.engine.RuntimeSettings();
1356
1356
  settings.targetFramesPerSecond = this.#targetFramesPerSecond;
1357
1357
  settings.xrModeActive = this._xrModeActive;
1358
1358
  if (this.#splatCountBudgetOverride !== null) settings.splatCountBudget = this.#splatCountBudgetOverride;
1359
1359
  else if (this._xrModeActive) settings.splatCountBudget = 2e5;
1360
+ return settings;
1361
+ }
1362
+ #applyDisplaySettings() {
1363
+ const settings = this.#buildRuntimeSettings();
1360
1364
  for (const scene of this.#scenes) scene.client.setRuntimeSettings(settings);
1361
1365
  settings.delete();
1362
1366
  }
1367
+ get _splatCountBudget() {
1368
+ const settings = this.#buildRuntimeSettings();
1369
+ const budget = settings.splatCountBudget;
1370
+ settings.delete();
1371
+ return budget;
1372
+ }
1363
1373
  /**
1364
1374
  * Why 43? Because the AVP throttles down to 45Hz :(
1365
1375
  */
@@ -1630,6 +1640,9 @@ var Miris = class {
1630
1640
  onColorSpaceDetected(_isLinear) {}
1631
1641
  add(scene) {
1632
1642
  this.#scenes.add(scene);
1643
+ const settings = this.#buildRuntimeSettings();
1644
+ scene.client.setRuntimeSettings(settings);
1645
+ settings.delete();
1633
1646
  }
1634
1647
  delete(scene) {
1635
1648
  this.#scenes.delete(scene);