Jump to content

memory usage increases because of picking


Kesshi
 Share

Recommended Posts

Hi,

currently i have a memory issue in my app. I have a scene with many clones of some high poly meshes.
So far its running fine on mobile devices but as soon as i start picking arround in the scene the memory keeps increasing until the app crashes.

The reason seems to be the position array cache of the meshes. (here: https://github.com/BabylonJS/Babylon.js/blob/master/src/Mesh/babylon.mesh.ts#L1399 )
Each mesh holds its own instance of the position array. Even if all meshes share the same geometry.

@Deltakosh I think this cache should be moved to the geometry class. This way the array could be shared between meshes. What do you think?

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...