From all that is said here, it is a memory leak - but one that is saved.
Basically a memory leak happens if a function creates a new data segment (allocating memory to it) but doesn't free that memory if it no longer needs it.
Most of the time memory leaks are only temporary - but that is only because the allocated data is not saved and gets lost on game end.
However if that data is saved into the savefile despite no longer being used and then loaded again on continuing, then this happens.
I did not read much but:
OLD SAFE FILES cause trouble! In VX-Ace they did, isnt that the case in MV anymore?
20Hours of Gametesting? That sounds like he is using the same safe file for month, maybe new plugins, new variables or item limits got added since than??? (Please tell us)
You maybe have to play your game again, and see if after hours of playing this happens again.
How large is the save filesize? That's a dead give away if your savefile is large and the data being written and read is large this could easily cause memory problems. Usually this is noticeable when saving and when loading a save file in game and it takes a few seconds to perform those actions. Could be many things but sounds like a lot of data is being saved to the save file and being loaded back into the game causing a large amount of memory to be used.
The lag has been seen on multiple people streaming the game. It tends to happen to them all at around the 15+ hour range where you'll start to notice a stutter in the FPS.
As for save file sizes, they're about 200kb (about the size of an average medium sized sideview battler image sheet) or so on my newest playthroughs, which I did to test the issue. I really played through the game from start to finish, and as usual, it was around the 15 hours of playtime mark that i began to notice the laggy bits.
I'm not playing for 15 hours straight either, it's in increments, and it doesn't matter how long I've played in one sitting, it's tied to how long I've played that save file altogether that seems to impact performance.
I'm doing some tests on a fresh project and also digging around other plugins to see if there are any possible plugins that might be bloating up some variables in the background that I don't know about, as Shaz suggested.
I'm not sure you understood what I was saying. When you say "bloating up variables", are you referring to putting large values in them? You've mentioned this a number of times in this thread, and I do not believe that is the cause at all. That is not what I suggested.
I suggested plugins might be adding their own $gameXYZ global variable, or might be adding new properties to the existing $gameSomething variables which would increase your file size. That is one possibility of many. Plugins MAY be doing something that requires extra processing each frame, without adding any new variables at all.
I gave my own multi timer plugin as an example, saying the more timers you were keeping track of at once, the more likely it is to affect performance as they are all decreased and checked each frame.
At this stage, I don't think you can point the finger at any one thing and say "it's variable bloating" or "it's plugin processing" or "it's accessing the playtime variable" and look for every instance of that thing happening. You don't have any evidence that it's likely to be one thing or another. All you can do for now is test and rule out possibilities, to narrow down the list.
Open dev tools (f8, performance tab and let it run for a bit. After a couple of minutes turn it off and let it draw the data. It will show function calls and execution times. Might show which function is bloazing your main thread.
JavaScript numbers can go up to 2^53 so have fun!
It'll be easier to just change the step counter variable in the console than actually take a bunch of steps
$gameParty._steps = 80000
in the console
Probably has more to do with how javascript saved the variable. Or maybe I just had something that didn't play nice with that counter at high levels (though no idea what). Either way, at least you eliminated that.