Scaling Issue with MZ

Has anyone else had this problem? The game's resolution and Window Box Height and Width is not following the settings.

2 Monitors. One is 4k and one is 1080p.

Instead of being 1280x720, you can see from the 1st screenshot (1283x721 which is inaccurate since it's bigger than that.) and the 2nd screenshot with a 1280x720 canvas, it does not match 1-1. You can see how big it is.
  1. 100% DPI it does not fix this issue.
  2. Changing the main display to 1080p monitor doesn't work either.
  3. F4/F3 scaling does not fix the issue.
It's very hard to position things properly with plugins to match up mockups because of it. Any help is appreciated. It might be related to nodejs?

There are no plugins. This is from a vanilla project.

1710563147982.png


1710564379972.png
Hi there and welcome. Could you provide more info on what the expected result is and what exactly the problem is?

it keeps upscaling it.
It keeps upscaling what?

position things properly with plugins
What plugins?
Hi there and welcome. Could you provide more info on what the expected result is and what exactly the problem is?


It keeps upscaling what?


What plugins?
Reformatted post to make it clearer.
After some more searching, found the fix to issue:

The game app is at root a Chromium browser: you can disable its scaling using the appropriate command-line argument. That can be done via the manifest file, i.e. your project's package.json. Add the following to the chromium-args field in that file:

--force-device-scale-factor=1

E.g. default manifest plus this edit:
JSON:
{
    "name": "rmmz-game",
    "main": "index.html",
    "chromium-args": "--force-color-profile=srgb --force-device-scale-factor=1",
    "window": {
        "title": "Game Title",
        "width": 816,
        "height": 624,
        "position": "center",
        "icon": "icon/icon.png"
    }
}
Note that the editor resets the manifest to default whenever you save your project. You can save your project, make the manifest edit, then launch playtest to avoid this. For deployment you may have to edit the deployed manifest file, I haven't checked.

Original thread: https://forums.rpgmakerweb.com/threads/scaling-issue-with-mz.166854/