From 5ce7637757bbedc16b60feca6d1512673d39c8d2 Mon Sep 17 00:00:00 2001 From: GengineJS <476393671@qq.com> Date: Fri, 15 Dec 2023 09:47:08 +0800 Subject: [PATCH] Fix instanced buffer memory leak problem (#16609) --- cocos/rendering/custom/web-pipeline-types.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/rendering/custom/web-pipeline-types.ts b/cocos/rendering/custom/web-pipeline-types.ts index 28024fe8e4..7aeb016db1 100644 --- a/cocos/rendering/custom/web-pipeline-types.ts +++ b/cocos/rendering/custom/web-pipeline-types.ts @@ -255,7 +255,6 @@ export class RenderInstancingQueue { instanceBuffers.forEach((instance) => { instance.clear(); }); - this.instanceBuffers.length = 0; } sort (): void {