RPG Maker MZ extreme lag when playtesting (Mac)

Hi!

RPG Maker MZ runs very slowly when playtesting my game on my Macbook Pro (2021 M1 Pro, so specs should not be the issue here). I get extreme lag spikes about every other second after running the editor for a while (usually doesn't take more than 30 minutes before it starts lagging like this). When checking my Activity Monitor, it seems that the "njws Helper (Renderer)" is occupying a whopping 26 GB of memory (with multiples taking up 10 and 8 GB respectively). Which is curious, because the Macbook only has 16 GB of RAM.
Skärmavbild 2022-07-18 kl. 19.23.13.png

However, I've been constantly checking the Activity Monitor, and this isn't always the case, even when the the playtest is running poorly.

Here is my plugin list, in case it's relevant:
Skärmavbild 2022-07-18 kl. 19.25.46.png


I'd greatly appreciate any help. Please let me know if any other info is needed. Thank you!
1) all computers have virtual memory, where they use some part of the HDD to expand the physical RAM. Virtual memory is slower to use however, and it becomes especially slow if more than 50% of the RAM-Size is added in virtual memory.

2) Plugins rarely add to lag, with the exeption of Ligthing-type plugins. And your plugin list contains nothing that could contribute to lag, not unless you loaded dozens of bitmap fonts.

3) the most common cause for lag are badly designed parallel process events. For example if you have an empty common event parallel process that accidentally gets activated, that would add a lot to lag.

please make a simple test: load one of the sample maps, for example world-1. place your starting point and the ship starting point near each other at one beach, then playtest a new game in that map without adding anything else. The load sample map is basically so you can have something to look at instead of playing on empty green grass for half an hour.

If that does not create any lag then you know it's somewhere in the events. If it still slows down, you'll have to check for deeper options.
Thank you Andar for your reply. Unfortunately, I still get the slowdowns, even when starting a new project with just the default stuff! I'm at my wits' end and can't find a solution no matter what I google. It really sucks since this heavily impedes my progress on my IGMC game... 😔

Anyone else here using RPG Maker MZ on an M1 Macbook? Have you had any issues?
then the lag can come from an external source - for example an agressive protection program that scans the editor and the project while in use, when it mistakes them for an external website due to the use of HTML-based functions.
or it could be a cloudsave that gets into problems syncronysing because the Editor uses databasing file access, not regular file access (which is why your projects should never be stored in a cloudsync'ed folder)
That could definitely be the case.

Either way, I ended up just doing a factory reset on my MacBook. But even after doing that, I still get the same issues with a clean slate. However, the program was working flawlessly back in December/January, leading me to think that a recent RPG Maker update might have broken things.
I encountered the exact same issue! I was using a 2013 Macbook Pro and the Playtest lagged as hell after 20 minutes since I opened RMMZ. I thought it must because my Macbook was too old, I needed to upgrade anyway. Then I bought a new Macbook Pro 2021, but it still happens to me.

I have to manually terminate all these duplicated nwjs helpers which hogging my memory. Did you manage to solve this issue in any easier way?
What OS are you on? I just ran my project on my 2016 macbook pro and I haven't noticed any issues. Have you tried to deploy your project and see the same issues after playing for 30+ minutes?
The default setting for events has "walking" check marked. You want to uncheck that for any stationary events like exits, torches, doors, signposts, ect... Which can add up.
When it's checked, every frame update will be checking to see if these events have moved. But it's a wasted process. On smaller maps it's negligible. But on larger maps like a town it can be cause a drop in the frame rate.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-extreme-lag-when-playtesting-mac.149608/