MCPcopy Index your code
hub / github.com/gre/gl-react / _startLoop

Method _startLoop

packages/gl-react/src/createSurface.tsx:480–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478
479 _loopRaf: any;
480 _startLoop(): void {
481 cancelFrame(this._loopRaf);
482 const loop = () => {
483 this._loopRaf = requestFrame(loop);
484 if (this._needsRedraw) this._draw();
485 };
486 this._loopRaf = requestFrame(loop);
487 }
488
489 _stopLoop(): void {
490 cancelFrame(this._loopRaf);

Callers 1

SurfaceClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected