(time)
| 2879 | this.needsContinuousRender = false; |
| 2880 | |
| 2881 | const renderFrame = (time) => { |
| 2882 | this.renderRequested = false; |
| 2883 | const controlsChanged = this.controls.update(); |
| 2884 | this.renderer.render(this.scene, this.camera); |
| 2885 | if (this.fpsMonitor) { |
| 2886 | this.fpsMonitor.update(time); |
| 2887 | } |
| 2888 | if (this.needsContinuousRender || controlsChanged) { |
| 2889 | this.requestRender(); |
| 2890 | } |
| 2891 | }; |
| 2892 | |
| 2893 | this.requestRender = () => { |
| 2894 | if (this.renderRequested) return; |