[3d] performance improve (#3131)

This commit is contained in:
Terry Jia
2025-03-18 16:23:32 -04:00
committed by GitHub
parent 5a12bf33f3
commit 06488cc811
2 changed files with 61 additions and 19 deletions

View File

@@ -38,6 +38,10 @@ class Load3dAnimation extends Load3d {
const animate = () => {
this.animationFrameId = requestAnimationFrame(animate)
if (!this.isActive()) {
return
}
if (this.previewManager.showPreview) {
this.previewManager.updatePreviewRender()
}