MZ Bad Game Perfomance, is my game using the iGPU?

When testing my game, I notice a lot of performance issues. More noticeably, the game seems to run most of the time at 30~fps instead of 60. I have around 100 plugins installed, but none of them are bloated with features that I do not use.

I have pretty good PC build, so I theorize that my game is not using my graphics card and is instead using my Integrated Graphics card. Could this be the case?

I noticed RPG Maker games always try to run using the iGPU. I had this issue with OMORI.
Possible, yes. The game app is a browser, which doesn't typically require a powerful GPU. So if the system has a choice and is set to choose automatically, it'll probably pick the lowest-spec one.

To try to narrow down the culprit for the reduced framerate, you could check the Task Manager (Windows), or the Performance tab of the dev tools window (F8/F12 during playtest).

Note - on Windows 10+ you can select a specific GPU on a per-app basis via the OS settings:
  • Windows Key + I -> Graphics Settings.
(If the framerate seems to quite cleanly step down from 60 to 30 to 20 etc, that sounds like VSync. If it's just, like, hovering around 30~40 then that's probably just a not-enough-resources situation.)
Possible, yes. The game app is a browser, which doesn't typically require a powerful GPU. So if the system has a choice and is set to choose automatically, it'll probably pick the lowest-spec one.

To try to narrow down the culprit for the reduced framerate, you could check the Task Manager (Windows), or the Performance tab of the dev tools window (F8/F12 during playtest).

Note - on Windows 10+ you can select a specific GPU on a per-app basis via the OS settings:
  • Windows Key + I -> Graphics Settings.
(If the framerate seems to quite cleanly step down from 60 to 30 to 20 etc, that sounds like VSync. If it's just, like, hovering around 30~40 then that's probably just a not-enough-resources situation.)
Thank you for your reply! And yes, the framerate is hovering around 30~40.

In the Task Manager the game is using 16% of the CPU.

Is there any way I can force the game to use highest-spec card? I know that I can change it myself by going to Graphics Settings, but I would like the player to not go through all of that.

Also, I can't find a way to select the prefered graphics card in the NVIDIA Control Panel as shown in this screenshot. I am sure I have an iGPU.
1000343907.png

1000343912.jpg
Is there any way I can force the game to use highest-spec card? I know that I can change it myself by going to Graphics Settings
I'm not sure...there might be a Chromium command line argument that you can add to package.json to make the system recognise it as a "high performance" app? If so, then I don't know what that arg might be.

Also, I can't find a way to select the prefered graphics card in the NVIDIA Control Panel
(Based on those screenshots it looks like you're either using Windows 8.1 or 10. I'll assume 10.)

As mentioned, GPU assignment is now done through the Windows settings. Nvidia Control Panel was the old way of doing it, until Windows supported it natively:
Also, the Task Manager should support showing GPU information:
If those columns aren't showing, you can right-click the header row and enable GPU and/or GPU engine from the list.
I'm not sure...there might be a Chromium command line argument that you can add to package.json to make the system recognise it as a "high performance" app? If so, then I don't know what that arg might be.
I have saved this command line, maybe it will work:
Code:
 --gpu --gpu-launcher --in-process-gpu --ignore-gpu-blacklist --ignore-gpu-blocklist

Sample:
JSON:
{
    "name": "rmmz-game",
    "main": "index.html",
    "chromium-args": "--force-color-profile=srgb --gpu --gpu-launcher --in-process-gpu --ignore-gpu-blacklist --ignore-gpu-blocklist",
    "window": {
        "title": "Project1",
        "width": 816,
        "height": 624,
        "position": "center",
        "icon": "icon/icon.png"
    }
}
I have saved this command line, maybe it will work:
Code:
 --gpu --gpu-launcher --in-process-gpu --ignore-gpu-blacklist --ignore-gpu-blocklist

Sample:
JSON:
{
    "name": "rmmz-game",
    "main": "index.html",
    "chromium-args": "--force-color-profile=srgb --gpu --gpu-launcher --in-process-gpu --ignore-gpu-blacklist --ignore-gpu-blocklist",
    "window": {
        "title": "Project1",
        "width": 816,
        "height": 624,
        "position": "center",
        "icon": "icon/icon.png"
    }
}
The moment I have the chance I will try adding these args, thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/bad-game-perfomance-is-my-game-using-the-igpu.179589/