[0]ShurikenParticleInstanceSystem内存统计错误
ShurikenParticleInstanceSystem类的destroy方法里,统计内存的一段代码漏了,导致内存面板显示会不断增长:
// 原始源码
if (this._instanceParticleVertexBuffer) {
this._instanceParticleVertexBuffer._byteLength;
this._instanceParticleVertexBuffer.destroy();
}
// 更新代码
if (this._instanceParticleVertexBuffer) {
memorySize += this._instanceParticleVertexBuffer._byteLength;
this._instanceParticleVertexBuffer.destroy();
}
没有找到相关结果
已邀请:
1 个回复
小高
赞同来自: