Babylonian Posted December 9, 2016 Share Posted December 9, 2016 I'm working on a project where a large number of objects get created, then are destroyed (with .dispose()), on an ongoing basis. I'm seeing memory use gradually increasing, and FPS gradually degrading. Have checked to ensure the Scene.meshes array is not getting longer and longer. But I noticed that the shadow generator renderlist, which gets added to with : shadowGenerator.getShadowMap().renderList.push(mesh); ...is getting longer and longer. The dispose() of the meshes does not seem to trigger removal from the list, although the shadows do disappear. Is there something I should be doing to remove them from the shadow render list? Or should this be happening automatically? BTW there is no heading for ShadowGenerator on http://doc.babylonjs.com/classes/2.4 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.