playMaker

Author Topic: Swap Sprite eating memory  (Read 2465 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4649
    • View Profile
    • jinxtergames
Swap Sprite eating memory
« on: August 14, 2015, 06:45:56 AM »
Hi,
i made i video so it is easier to see what happens


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4649
    • View Profile
    • jinxtergames
Re: Swap Sprite eating memory
« Reply #1 on: August 14, 2015, 01:00:05 PM »
Hi,
can someone test if they have the same issue?
and also on a Mac (i am on pc)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4649
    • View Profile
    • jinxtergames
Re: Swap Sprite eating memory
« Reply #2 on: August 14, 2015, 01:44:16 PM »
Update, also if i use set properties/Sprite/Sprite on a sprite renderer
and add a sprite on it, the memory also goes up every seccond

sebaslive

  • Hero Member
  • *****
  • Posts: 559
    • View Profile
    • Frame Tale Studios
Re: Swap Sprite eating memory
« Reply #3 on: August 15, 2015, 12:10:42 PM »
tried this out and memory went bananas
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14832
  • Official Playmaker Support
    • View Profile
Re: Swap Sprite eating memory
« Reply #4 on: August 15, 2015, 02:06:34 PM »
Hi,

 yep, I can repro this as well. I verified that a regular script exposing a sprite doesn't have memory leak, so something needs to be fixed with the Action inspector system.

 I have reported a bug, so I am sure this will be fixed in the next release. Thanks for the report.

 Bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • Yup.
    • View Profile
    • Cleverous
Re: Swap Sprite eating memory
« Reply #5 on: August 17, 2015, 05:10:31 AM »
Recently while doing a custom inspector (unrelated to PM) I made a new white 1x1 Texture2D for color fill in OnInspectorGUI() and left it to GC to cleanup but it was leaving them in memory. Actually threw at error of some kind at me, can't remember what it was. Ended up moving it to OnEnable() (might still even be leaking, but its minuscule).. I wonder if it has always leaked or if this is something new in 5.x?

Either way, can't do anything about this one from within the action unfortunately.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14832
  • Official Playmaker Support
    • View Profile
Re: Swap Sprite eating memory
« Reply #6 on: August 17, 2015, 11:26:18 AM »
Hi,

 Thanks for the infos, I am currently on the case to try isolating the leak issue outside PlayMaker.

 Bye,

 Jean

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3634
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Swap Sprite eating memory
« Reply #7 on: August 31, 2015, 11:45:18 PM »
Turns out this is a Unity bug. Will be fixed in Unity 5.3:
2D : Fix memory leak when using Sprite object field in custom inspector