playMaker

Author Topic: memory leak? CRAZY spikes  (Read 1189 times)

Qbanyto

  • Full Member
  • ***
  • Posts: 137
  • Vista Larga, Paso corto
memory leak? CRAZY spikes
« on: February 24, 2022, 07:30:56 PM »
Is it possible that playmaker is causing a memory leak? It's my main asset that I am using throughout my entire project and I noticed over time I get CRAZY spikes. How can I pinpoint what's causing it? Here are some screenshots showing the profiler. and the spikes freeze the gameplay for several seconds. I've been using Playmaker since the very beginning of my project. So, I'm not 100% sure if it's this or something else. any advice?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7619
    • jinxtergames
Re: memory leak? CRAZY spikes
« Reply #1 on: February 24, 2022, 10:01:50 PM »
Hi.
It will probably point towards playmaker inside the profiler but probably not because playmaker itself is causing this.

maybe there is some loop creating infinite images for example.

try to pinpoint which scene(s) give this issues, then in this scene(s) try to turn of stuff to narrow down

Qbanyto

  • Full Member
  • ***
  • Posts: 137
  • Vista Larga, Paso corto
Re: memory leak? CRAZY spikes
« Reply #2 on: February 24, 2022, 10:21:52 PM »
Actually I was thinking of doing an elimination diet on it. Like you said. Turning things off that are suspect.  I’ll report back. Thanks!

Qbanyto

  • Full Member
  • ***
  • Posts: 137
  • Vista Larga, Paso corto
Re: memory leak? CRAZY spikes
« Reply #3 on: March 01, 2022, 05:14:14 PM »
I tried a process of elimination with no success. but I did find something that MAY help. Can you tell me what this means circled in red? there seesm to be 3372 calls with this item. is this the same PlaymakerGUI game object that auto imports into the project in the hierarchy?


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7619
    • jinxtergames
Re: memory leak? CRAZY spikes
« Reply #4 on: March 01, 2022, 09:21:27 PM »
Hi.
Have you tried profiling a build?
As when in editor, all editor stuff is included.
i am still on 1.9.0 , so it might be better on latest version, but when i play my game in editor when playmaker windows is visible it will lag a lot, also things like animator will increase lag.
Even when i play full screen it still has a more lag than in builds.

Qbanyto

  • Full Member
  • ***
  • Posts: 137
  • Vista Larga, Paso corto
Re: memory leak? CRAZY spikes
« Reply #5 on: March 01, 2022, 09:56:11 PM »
I thought about that b it that last time i create a build, the spike lags would come with it. I can try again.

Would the playmakergui cause lags like this?


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7619
    • jinxtergames
Re: memory leak? CRAZY spikes
« Reply #6 on: March 02, 2022, 08:46:36 AM »
Hi.
I think that it should not be included in build but i can't say 100% sure.
But you should be able to see in the profiler.