Some advice with a possible memory leak.

Hmmm....unfortunately the data seems pretty useless. There's not enough resolution to see what is going on. Sorry I made you go through that for little pay off.

When you say lagging, could you describe what that is like?
Is it it that the frame rate consistently lowered (like dropping from an average of 60fps down to 30 fps)
Or is it random spikes/stutters - inconsistent frame drops.
No worries. I appreciate you helping.

When you say lagging, could you describe what that is like?
Is it it that the frame rate consistently lowered (like dropping from an average of 60fps down to 30 fps)
Or is it random spikes/stutters - inconsistent frame drops.

All the lag seems to be in battles. Basically, I used the timed attack clock plugin for my battles,
This is the first thing I noticed is when the clock turned, it was starting to stutter just a bit. The second is all animations or movements are slightly less smooth. The major spike I encountered when I was testing with perfmon, was a boss fight where there were a lot of moving parts. More than one enemy, a moving background, a status effect that plays a repeating animation on the boss was in effect. I never encountered any issues while play-testing this battle in the troop battle test, or if I was just testing this area of the game. But since I was already playing for an hour an a half, I had nearly everything I had made in my game loaded into ram at this point, and was seeing a performance breakdown. I think all of that at once was too much. And the battle system became basically unplayable after that point. In the past usually the first thing to start messing up was the damage number popup would not occur on the first hit of a battle. This did not happen this time.

Also, while I think it is possibly related, this could actually be some kind of plugin issue that's causing the battles to fail over time. But it seems to only happen as the ram usage starts to increase.

Would it make sense to focus my search on all plugins that haven't been updated for post 1.5.1 core files? Maybe they don't comply with changes that helped the core system?
Sorry for the wait on the reply,
If you suspect it might be a plugin, then it never hurts to try disabling it temporarily and then play testing to see if it fixes the issue.
One thing that occurred to me is that there could just be a bad interaction between plugins depending on their order. I am by no way familiar with every plugin out there, but maybe I or someone more familiar with some of the plugins can tell you if your plugin load order is incorrect. Though plugin load order can and will cause problems, the results usually are more immediately obvious, so I don't think this would be the cause of the problem, but might as well take a look anyways.

I can't recall if you have already been asked this in the thread (and I quickly glanced over it again but didn't see any reference to it), but have you upgraded your NWJS?
I honestly cannot recall MV's default performance on the old NWJS, but think it was not great to begin with. Upgrading NWJS and PIXI may help with performance.
MV cannot exceed vr. 50 on NWJS and vr 5 on PIXI before plugins start to break down. There is a popular guide here on the forums on how to upgrade both, I would follow it exactly (the exact version number of NWJS it recommends, which iirc is 48.9)
Just google/forum search "RPG Maker MV upgrade nwjs" by user killergin
Sorry for the wait on the reply,
If you suspect it might be a plugin, then it never hurts to try disabling it temporarily and then play testing to see if it fixes the issue.
One thing that occurred to me is that there could just be a bad interaction between plugins depending on their order. I am by no way familiar with every plugin out there, but maybe I or someone more familiar with some of the plugins can tell you if your plugin load order is incorrect.

I can't recall if you have already been asked this in the thread (and I quickly glanced over it again but didn't see any reference to it), but have you upgraded your NWJS?
No worries, but yeah, I’ve got a lot of plugins. That could be the problem right there...

Also no I have never upgraded NWJS or Pixi. I saw that was a possibility but I was hesitant because I thought some of my older plugins might not handle it well. It's pretty easily reversible right?

As for my plugin list here it is...
Spoiler: Plugin List
PluginList.png
I definitely recommend updating it on MV. If you follow the tutorial on here exactly, Killergin provides back-up steps as well, so it's easy to revert. I also do think you could technically just delete the NWJS files and then run steams game validation check to quickly revert (if you are using the steam version, of course)
Regardless, yes, it's easy to back up and restore in the event anything goes wrong.

As for the plugins, I didn't heavily check if anything is out of place, but at a glance, I see both Yanfly and Mog's stuff together. I suppose if it hasn't caused any crashes by now, it might be okay, but often Mog's stuff doesn't play nice with Yanfly's stuff - at least from my experience. Maybe someone with more experience can corroborate this information.
Awesome, that's good to know about NWJS. Yeah I have had some run ins with some conflicts between Mog and Yanfly and had to get a fix made for one and change the placement of another. They were high on my list to check as I test all of these. But thank you so much for all of your help.
Just a small update, upgrading my NWJS helped pretty well. I can go through all that I have done with little to no issue. But I am still slowly creeping up in ram usage so I will be hitting up plugins next.

Original thread: https://forums.rpgmakerweb.com/threads/some-advice-with-a-possible-memory-leak.162073/