feat: 优化各种性能表现

This commit is contained in:
AncTe committed 2024-11-07 20:01:00 +08:00
1 parent 740dfdb6ce
commit 7e5b20d3ad
10 files changed
+75 -480

No files matched your search

+1
View File
@@ -159,6 +159,7 @@ export class Portal extends Sprite {
}
private renderPortal(canvas: MotaOffscreenCanvas2D) {
if (this.renderable.size === 0) return;
const { ctx } = canvas;
const p = this.particleSetting.value;