Jump to content

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


zied sellami
 Share

Recommended Posts

 @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 :)

 

Link to comment
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?

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...