Game window size scaling on high resolution display

I've had a 1080p monitor for years but just barely upgraded to 1440p. My scaling is set to 125% in Windows and it seems like my game is being scaled right alongside that, from a window size of 1248*720 to 1560*900. Ideally, 1440p and 4K monitors would benefit from a 2x and 3x integer scale from the base resolution, but they seem to be scaling up from the 900p one instead.

I've tried changing the DPI settings for the executable but they don't do anything. Surely there must be some way to force the game to not respect DPI scaling and just run at the intended resolution? I'm using YEP Core to change the window size.
RPG Maker generally doesn't play well with high-resolution displays.

That being said, 1440p is well within the sweet spot of being a bump up from 1080p while not being considered high-resolution or higher DPI in the sense that OS-level scaling is defaulted to unless it's for accessibility reasons.

The more common scenarios for scaling involving desktop displays are:
  • 150% scaling in Windows with a 4k display
  • 1440p scaled resolution on a 5k display, e.g. an Apple Studio Display or similar
And either of those scenarios will give you issues with RPG Maker's lower-resolution output.

One tactic you can potentially use is choosing a size for your game that scales well in full screen mode, and err on the side of running in that mode on higher-res displays. This can be pretty effective if you're using nearest neighbor scaling, e.g. for an 8-bit or 16-bit style game. But for anything "painterly," you're going to have blurry output on higher-res displays unless you make significant changes to the asset and window sizes.
I'm not having an issue with the engine, that looks totally fine. I'm having an issue with the game I made scaling up alongside the scale I have set in Windows instead of respecting its set resolution. So I just want the game to stay 1248x720 regardless of the OS scaling. That way, when the game goes into full screen (1440p, 4k, or 5k) it will actually be using an integer scale. I know that wouldn't look good with painterly graphics because they will get pixelated, but I'm already using pixelated graphics and they get blurrier when not running at their intended resolution or an integer multiplication of it.
You might be able to do this via the .exe's compatibility settings in Windows, but whether or not that would ship with the game for end users is not something I've ever had cause to investigate. In terms of a plugin, I don't think OS-level scaling values are directly exposed to the browser, but again, I've never had cause or desire to check.

Good luck with your project.
You can edit your project's manifest file (package.json) to add the --force-device-scale-factor=1 Chromium arg. E.g. default RMMV manifest plus this arg:
JSON:
{
    "name": "",
    "main": "index.html",
    "js-flags": "--expose-gc",
    "chromium-args": "--force-device-scale-factor=1",
    "window": {
        "title": "",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "icon/icon.png"
    }
}
[Edit: whoops, I originally put it in the js-flags field by mistake; it should be in chromium-args. I've corrected that, and tested it, seems to work for me.]
You can edit your project's manifest file (package.json) to add the --force-device-scale-factor=1 Chromium arg. E.g. default RMMV manifest plus this arg:
JSON:
{
    "name": "",
    "main": "index.html",
    "js-flags": "--expose-gc",
    "chromium-args": "--force-device-scale-factor=1",
    "window": {
        "title": "",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "icon/icon.png"
    }
}
[Edit: whoops, I originally put it in the js-flags field by mistake; it should be in chromium-args. I've corrected that, and tested it, seems to work for me.]
That worked perfectly! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/game-window-size-scaling-on-high-resolution-display.182810/