Skip to content

Commit c965f28

Browse files
comment
1 parent 775256d commit c965f28

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/engine/src/world/Renderer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ export class Renderer {
164164
this.aspectRatio = ratio
165165
}
166166

167+
/**
168+
* Requests the next animation frame, making sure to match the refresh rate of the output window
169+
* @param callback The function to call on the next animation frame.
170+
*/
167171
public requestFrame(callback: () => void): void {
168172
this.rafId = this.outputWindow.requestAnimationFrame(callback)
169173
this.frameCallback = callback

0 commit comments

Comments
 (0)