feat: throttle scene rendering to animation framerate (#5422)

This commit is contained in:
David Luzar
2022-07-07 11:47:37 +02:00
committed by GitHub
parent c725f84334
commit b6bb74d08d
11 changed files with 89 additions and 51 deletions

View File

@ -14,7 +14,7 @@ import { reseed } from "../random";
// Unmount ReactDOM from root
ReactDOM.unmountComponentAtNode(document.getElementById("root")!);
const renderScene = jest.spyOn(Renderer, "renderScene");
const renderScene = jest.spyOn(Renderer, "renderSceneThrottled");
beforeEach(() => {
localStorage.clear();
renderScene.mockClear();