Closed dmnsgn closed 1 year ago
Current workaround:
function cleanUpGeometryBuffers(ctx, geometry) {
if (geometry._indices.buffer) ctx.dispose(geometry._indices.buffer)
Object.values(geometry._attributes).forEach((attribute) => {
if (attribute.buffer) ctx.dispose(attribute.buffer)
});
}
v4: we have no dispose implemented anywhere
New World and RenderEngine classes implements dispose by calling dispose on all the system
Added option to pass entities to render engine too in 12adc6c
See glTF example where changing models keeps increasing the numbers of buffers.