DezOnlyOne Posted November 12, 2015 Author Share Posted November 12, 2015 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 12, 2015 Share Posted November 12, 2015 Dunno, to me it still seems like the skeletons are not being disposed. I tried your zip file. In index.html you have a commented line ://skeletons.forEach(function(s){ s.dispose()});Running this actually disposes the skeletons correctly. Could that be the problem? Quote Link to comment Share on other sites More sharing options...
DezOnlyOne Posted November 12, 2015 Author Share Posted November 12, 2015 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 12, 2015 Share Posted November 12, 2015 There is now a dispose function (in babylon 2.3). Using this line, the skeletons are disposed correctly (tested using your scene). Quote Link to comment Share on other sites More sharing options...
DezOnlyOne Posted November 12, 2015 Author Share Posted November 12, 2015 Thank you. I will update to the newest version. Is that still in preview Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 12, 2015 Share Posted November 12, 2015 still in preview, but very much functional. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 12, 2015 Share Posted November 12, 2015 Sounds like Raanan found the cause Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 12, 2015 Share Posted November 12, 2015 Well, you implemented it :-) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 12, 2015 Share Posted November 12, 2015 team work! RaananW 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.