Skip to content

Commit

Permalink
feat: opt code
Browse files Browse the repository at this point in the history
  • Loading branch information
luzhuang committed Jul 21, 2023
1 parent 5a558d7 commit 78bff16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export class Engine extends EventDispatcher {

const deltaTime = time.deltaTime;
this._frameInProcess = true;

this._renderElementPool.resetPool();
this._meshRenderDataPool.resetPool();
this._spriteRenderDataPool.resetPool();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCu
import { Keyframe } from "../Keyframe";
import { AnimationCurve } from "./AnimationCurve";
import { IAnimationCurveCalculator } from "./interfaces/IAnimationCurveCalculator";

/**
* Store a collection of Keyframes that can be evaluated over time.
*/
Expand Down

0 comments on commit 78bff16

Please sign in to comment.