[0]ShurikenParticleInstanceSystem内存统计错误

ShurikenParticleInstanceSystem类的destroy方法里,统计内存的一段代码漏了,导致内存面板显示会不断增长:
 
// 原始源码 
if (this._instanceParticleVertexBuffer) {
this._instanceParticleVertexBuffer._byteLength;
this._instanceParticleVertexBuffer.destroy();
}

// 更新代码
if (this._instanceParticleVertexBuffer) {
memorySize += this._instanceParticleVertexBuffer._byteLength;
this._instanceParticleVertexBuffer.destroy();
}
企业微信20230424-200516@2x.png
已邀请:

小高

赞同来自:

您好,已复现,会在下个版本中进行修复,感谢您的反馈。

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作