You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on our game, we noticed some issue with object still in memory that shouldn't.
After a bit of profiling, we found the culprit:
In getTransformationMatrix of DisplayObject, you are using sAncestors Vector to hold the hierarchy of parents, but you are not emptying it afterwards. So all the hierarchy is still referenced from that object after the method complete.
I suggest setting the length to 0 line 220 and line 250.
Sebastien
The text was updated successfully, but these errors were encountered:
Hi,
While working on our game, we noticed some issue with object still in memory that shouldn't.
After a bit of profiling, we found the culprit:
In getTransformationMatrix of DisplayObject, you are using sAncestors Vector to hold the hierarchy of parents, but you are not emptying it afterwards. So all the hierarchy is still referenced from that object after the method complete.
I suggest setting the length to 0 line 220 and line 250.
Sebastien
The text was updated successfully, but these errors were encountered: