MV Performance issues after updating nwjs

Every time I've updated my nwjs files it ends up making my game lag more, despite multiple threads saying it's supposed to do the opposite. My game ran fine before so it'd be easy to simply rollback, but the problem is that I want to add Steam achievements to my game which apparently requires specific versions of nwjs (I'm using v0.49.1 per this guide).

The performance issues are mostly limited to a single map which suggests it could just be an optimization problem on my part, but I feel like I've optimized it as much as possible (and like I said, it wasn't lagging until I updated nwjs). The map in question, 46x34 with ~130 events, pictured below. Most of the events are just for swapping out tiles/characters when certain conditions are met (e.g. lighting windows). Even when I remove the parallel processes it still lags so it seems like it's just the sheer size/number of events I guess.

Spoiler: Map Screenshot
1772752952020.png

It'd be one thing it was just a light stutter but it can drop to as low as <10 fps for several seconds. Has anyone experienced something similar? Is it something that can be fixed or do I have no choice but to revert to a previous version? Any help would be greatly appreciated. Thanks!
I don't think the events should be the cause, as I did a test map of 700 harold events and got just a small lag at map load then normal fps. But none of them were animated or had pages or anything else too. Still I think if 700 harolds standing still don't lag ~130 events shouldn't either.

Its possible one of your plugins is calling features in nw.js and the update is causing it to run slower for some reason. That would be one place to check.

One other idea: I don't suppose you are testing this on a PC with integrated graphics? I have seen some odd lags on PCs with integrated graphics cards from time to time myself.
I think we'd need to know what plugins you're using. I doubt the number of events is a factor, unless nearly all of them are parallel, and even then it seems like a low possibility.
One other idea: I don't suppose you are testing this on a PC with integrated graphics?
Honestly I'm not too familiar with the different terminology for computer specs but I think I am? (AMD Ryzen 5 7535HS with Radeon Graphics)
I think we'd need to know what plugins you're using.
Also here's my full list of plugins for reference:
Spoiler: Plugins list
1772778965924.png

1772778997074.png

1772779046110.png

1772778997074.png

So after some testing I narrowed it down to 3 that seem to be causing the performance issues: UPP_MINIMAP, CTB_Timers, and MultiTimers. I found that I could have 1-2 enabled at a time with only a little lag (either just the timers or just the minimap), but all 3 at once is when the game gets noticeably slow. In retrospect I should've suspected these from the beginning since they're basically constantly active on this map... which is also why I can't just remove them (because I need them for a minigame).

While it's good to know that updating nwjs wasn't (inherently) the problem, not sure where to go from here :hswt:
I don't have problems with nwjs updated, but did you also update your PIXI.js
to the correct version with NWJS 0.49.2?

as I use 0.48.4 with PIXI 4.8.9 and I have no trouble with any lags though.

I doubt pixi plays a roll with it (base is 4.5.4)? but you should it may lag if
its lower, so if you didn't update PIXI try pixi 4.8.9 and see if that solves it.

but it could be Irana performanceUpgrade too.

another thing, accurate GameTimer and mac15001900 does almost the same,
so I would disable accurate gameTimer fix as it is overwritten probably.
don't use both.

I don't know how far CTB Timers and multitimers goes, if it overwrite anything or not.
That does sound like integrated graphics. Now the lags I've seen are usually dips of 5ish fps though. As in you will be stuck at lie 54 - 55 fps instead of 60 fps on the map, and it comes and goes. It *could* be adding to the problem in addition to other things going on. But if it were that you'd see this even on empty maps or maps with barely anything too from time to time. Or it could be just my potato haha. Either way I doubt this is the main cause due to how extreme your fps drop is.

Or the issue could be nwjs isn't compatible with your graphics. That is one of the reasons MV uses the version it does as they did try to update it once, and it stopped working on some PCs so they rolled it back. Sadly due to this most do either use MZ or forget about steam achivements at there are other issues you will hit (specifically the MV freeze up at monitors over 60 refresh rate which you can patch but another dev told me that patch stopped working once they added achivements and other things. As in they had to decide between steam achievements or the freeze up fix. Take it for what it is as the info is 2nd hand at best).

But based on your plugin findings also noted above I think that is more likely the cause. I'd focus there and only return to this if it keeps up after you fix that.

PS: I know there are typos but its Friday and I'm tired. Deal with it internet.
did you also update your PIXI.js
to the correct version with NWJS 0.49.2?
Updating pixi.js to 4.8.9 didn't make a difference. I even tried switching to NVIDIA's high performance mode and it was still lagging...

Ultimately it seems the issue was just the UPP_Minimap plugin being too old/poorly optimized. Luckily I found a different minimap plugin (MPP_Minimap) and the fps went back to normal even with the other plugins enabled, so I'll just use that going forward (though It's a bit of a pain to have to essentially redo my map system from scratch 🙁)
specifically the MV freeze up at monitors over 60 refresh rate which you can patch but another dev told me that patch stopped working once they added achivements and other things
The refresh rate thing is weird because I've never experienced it myself but a couple players reported the freeze so I added the patch. I haven't tested achievements on Steam yet but I was able to confirm the greenworks plugin is working so hopefully everything works out?

Anyway thank you all for the input and pointing me in the right direction @Solar_Flare 🙂👍

Original thread: https://forums.rpgmakerweb.com/threads/performance-issues-after-updating-nwjs.182753/