- 2019-09-08 at 12:06 pm #18501
I can append scene and clone objects, But how do I remove objects that I have cloned?
Like what you do with verge3d
// Patrik2019-09-09 at 7:03 am #18508
Here is a Puzzle snippet for calling this function:2019-09-09 at 7:47 am #18514
Oh,I think we can create a partical system using puzzle now.
- This reply was modified 1 week, 2 days ago by zjbcool.
——https://zjbcool.com/2019-09-09 at 8:06 am #185202019-09-09 at 2:57 pm #18533
if the remove() function is sufficient to completely remove an object and its data from memory?
Indeed, calling dispose() for both geometry and the material is necessary to free memory occupied by an object’s resources. Thank for sharing the snippet!2019-09-09 at 3:19 pm #18535
I do not wish to complicate this topic, but I do wonder if the remove() function is sufficient to completely remove an object and its data from memory? There are a few threads about this on Stack Exchange and a page in the Three documentation (https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects). I wrote a function to do this that removes the object from the scene and also disposes of the data. My hope was this approach would free up memory better than using remove() alone. What is the opinion of the Soft8soft team?
Attachments:You must be logged in to view attached files.2019-09-09 at 3:32 pm #185382019-09-10 at 4:39 pm #18545
Thanks for quick reply.
You must be logged in to reply to this topic.