MCPcopy
hub / github.com/sparkjsdev/spark / setAutoUpdate

Method setAutoUpdate

src/OldSparkViewpoint.ts:266–275  ·  view source on GitHub ↗
(autoUpdate: boolean)

Source from the content-addressed store, hash-verified

264 // Turn this on or off depending on whether you expect to do renders from
265 // this viewpoint most frames.
266 setAutoUpdate(autoUpdate: boolean) {
267 if (!this.autoUpdate && autoUpdate) {
268 this.spark.autoViewpoints.push(this);
269 } else if (this.autoUpdate && !autoUpdate) {
270 this.spark.autoViewpoints = this.spark.autoViewpoints.filter(
271 (v) => v !== this,
272 );
273 }
274 this.autoUpdate = autoUpdate;
275 }
276
277 // See below async prepareRenderPixels() for explanation of parameters.
278 // Awaiting this method updates the Gsplats in the scene and performs a sort of the

Callers 2

constructorMethod · 0.95
disposeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected