Jump to content

Out of Memory Errors (Aw Snap)


DezOnlyOne
 Share

Recommended Posts

The issue does not appear with a single bone. I have a similar test to the one from before with objects in the 440k vert range. They swap fine with no noticeable issue. I cannot do a heap snapshot without it crashing, but my end users won't need to do that. I am still confused as to why it does not work with the rigged characters. Still leads me back to some type of threshold issue. The problem is that I cannot limit this to one bone or even a few bones. 

Link to comment
Share on other sites

I agree that the skeletons are not being disposed. There is no dispose function on the skeletons or the bones. That's why I commented out that line. 

 

But...

 

I think I might have fixed it after looking around. I just use

 

scene.skeletons = [];

 

in my removePatient function, and that seems to have cleaned it up. I can get dozens of swaps with no OOM error, when I could not get more then 4 before. 

Just reached 100 swaps. 

 

I am going to test this today, but I think this issue might be fixed. 

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