Skip to content

[Bug] 内存泄漏问题 #2075

@skie1997

Description

@skie1997

Version

1.0.11-alpha.1

Link to Minimal Reproduction

vscreen

Steps to Reproduce

泄漏根因

泄漏的根本原因在 @visactor/vrender-animate 包的 DefaultTicker 类中:

// DefaultTicker 构造函数
this.frameTimeHistory = []; // ← 只增不清的数组

// handleTick 每帧都会 push
this.frameTimeHistory.push(this.lastFrameTime); // ← 每次 tick 都 push,永不清理

Current Behavior

null

Expected Behavior

null

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions