Sudden Frame Drop, Need Help!

Hello everyone,


I'm currently experiencing some frustrating frame drop issues while testing my game in RPG Maker MZ.


The problem is that the game frequently drops from a steady 60 FPS down to around 40 FPS without warning, and the lag lasts for about 4–5 seconds. This kind of issue never occurred in the past two years when I was using my previous setup (RTX 3060 Ti with Windows 10). It only started happening after I switched to a new computer.


Here are the specs of my new machine:


  • CPU: Intel(R) Core(TM) i7-14700KF 3.40 GHz
  • RAM: 32GB
  • GPU: RTX 4070 Super
  • OS: Windows 11

I want to clarify a few important points up front:


  1. The issue is not related to parallel events, plugins, or my monitor.
  2. I tested the exact same game project on both my old and new computers. It runs perfectly smooth on the old machine, but experiences frame drops on the new one.
  3. I even created a brand new, completely empty project with no plugins and no events, and the issue still persists on the new computer.
  4. I did not change my monitor — it’s a 2K display that I’ve been using for the past two years without any frame drop issues.

At this point, I’m really confused and unsure what’s causing the problem. Any help or insights would be greatly appreciated. Thanks in advance!

Btw, this frame drop issue wasn't happening on any other games(including 3A like MH Wilds), so the hardware should be fine.
The executable of MZ (NW.js v0.48.4) is a bit old comparing to your hardware.
Have you tried playing some online MZ games on for example itch.io, to see if you have the same issue?
The RM-games rarely pose a problem for any GPU, and framerate has nothing to do with the display eiter.
However, if the display driver used does not fully support OGL/WebGL, then this can cause problems.
Please check that the driver manufacturer for your driver is nVidia and not Microsoft.

Microsoft programmed several multi-purpose drivers for other display chips, but those drivers are focusing on compatibility with DirectX and on supporting multiple chips. OGL (which is competition to DirectX) is rarely optimized from those drivers, and the manufacturer drivers are usually better for GPU control anyway.
The executable of MZ (NW.js v0.48.4) is a bit old comparing to your hardware.
Have you tried playing some online MZ games on for example itch.io, to see if you have the same issue?
Yes! It turns out the issue was indeed caused by the outdated version of NW.js!


I manually updated the nwjs-win folder inside RPG Maker MZ and replaced it with the latest version (v0.98.1). After updating, I created a new project, and the frame drop issue was completely resolved.


However, a new problem has come up. After updating NW.js, I’m now unable to test my current in-progress project—or any of my older projects, for that matter. When I press the “Playtest” button, the game window immediately closes.


Also, after verifying the integrity of RPG Maker MZ via Steam, the NW.js version gets reverted back to v0.48.4.


Do you have any solution or workaround for this issue?

Yes! It turns out the issue was indeed caused by the outdated version of NW.js!


I manually updated the nwjs-win folder inside RPG Maker MZ and replaced it with the latest version (v0.98.1). After updating, I created a new project, and the frame drop issue was completely resolved.


However, a new problem has come up. After updating NW.js, I’m now unable to test my current in-progress project—or any of my older projects, for that matter. When I press the “Playtest” button, the game window immediately closes.


Also, after verifying the integrity of RPG Maker MZ via Steam, the NW.js version gets reverted back to v0.48.4.


Do you have any solution or workaround for this issue?
Yes, I'm using the official driver downloaded through the Nvidia App, so it's not a Microsoft generic driver.
I believe the issue is caused by the outdated NW.js version that comes with RPG Maker MZ.

However, after I manually updated NW.js inside MZ to the latest version, I'm now unable to run playtests for any of my existing projects—they just won’t open during testing.

The RM-games rarely pose a problem for any GPU, and framerate has nothing to do with the display eiter.
However, if the display driver used does not fully support OGL/WebGL, then this can cause problems.
Please check that the driver manufacturer for your driver is nVidia and not Microsoft.

Microsoft programmed several multi-purpose drivers for other display chips, but those drivers are focusing on compatibility with DirectX and on supporting multiple chips. OGL (which is competition to DirectX) is rarely optimized from those drivers, and the manufacturer drivers are usually better for GPU control anyway.
Yes, I'm using the official driver downloaded through the Nvidia App, so it's not a Microsoft generic driver.
I believe the issue is caused by the outdated NW.js version that comes with RPG Maker MZ.


However, after I manually updated NW.js inside MZ to the latest version, I'm now unable to run playtests for any of my existing projects—they just won’t open during testing.
in that case you'll need to update the nw.js in the project as well - the playtest requires the same version in both editor and project.

please keep in mind that updating the editor often changes the nw.js version as well, so you might have to repeat either update later as well
in that case you'll need to update the nw.js in the project as well - the playtest requires the same version in both editor and project.

please keep in mind that updating the editor often changes the nw.js version as well, so you might have to repeat either update later as well
How do I update nw.js in the project? I can't find this file in my project folder.

in that case you'll need to update the nw.js in the project as well - the playtest requires the same version in both editor and project.

please keep in mind that updating the editor often changes the nw.js version as well, so you might have to repeat either update later as well
For some unknown reason, I can now open all my projects in test mode again…
However, a new issue has appeared.


When I launch a playtest, the DevTools console shows a large number of the following errors:
The provided value 'undefined' is not a valid enum value of type CanvasTextAlign.

And also
Unload event listeners are deprecated and will be removed.

1 source
rmmz_managers.js:1934

😅

The problem has resolved, this thread can be closed now.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/sudden-frame-drop-need-help.177014/