Sign in to follow this  
zied sellami

Is there is a way to clean the canvas or the sean?

Recommended Posts

Hi everyone
I'm trying to change the same meshes values to a new one.
The problem that the old instance is still rendered in the scene over the new one.
Is there is a way to clean the canvas or the sean or to clean the old meshes state ?

 

Share this post


Link to post
Share on other sites

 @JohnK ,  @NasimiAsl I'm trying to generate forms  so for that i manipulate all the Matrix (positions,normal,indice) i used my_mesh.dispose; my_mesh=null ; but after a few time using the application it comes slow , so i need a method that it init my sean to a blank step without load memory for the meshes that are disposed.

@JohnK I'm sorry but i cannot put it in the playground or show any exemple because it is confidential. i wish that you understand that :)

 

Share this post


Link to post
Share on other sites

This topic has come up before

Sounds like a garbage collection issue. Do you still have references to you mesh? If so mesh will not be garbage collected.

This might be worth a read http://stackoverflow.com/questions/742623/deleting-objects-in-javascript

Are there other ways of approaching what you need? Could you update positions, normals etc in existing mesh rather than create a new one?

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.