Replicating Omori's resolution option in MZ

Okay so, by default in rpg maker when you put your game in fullscreen and use the "stretch" option, the game will stretch to fit your screen and a blurry filter will be put on. If you want to make a game with a pixel art style, you can use a plugin to deactivate that filter and make it "pixel perfect". However, if your monitor's resolution isn't divisible by the game's resolution, some rows and columns of pixels will be 2 pixels wide, and others will be 1 pixel wide, which looks really bad.

My solution was making my game's resolution be 960x540, so that it could perfectly stretch to exactly twice the size and fit my 1080p monitor. However, if somebody with a different screen size played the game we'd run into the same problem.

When I played Omori (made with rpg maker MV) I noticed they solved that issue in a way that I haven't seen replicated in any public plugins. Instead of a stretch option there is an x1 and x2 option for the resolution.
In x1 the game is displayed at normal resolution and 1 screen pixel is used to draw 1 game pixel.
In x2 the game is scaled up to exactly twice the size and blocks of 2x2 screen pixels are used to draw 1 game pixel.
If you play in fullscreen the rest of the screen is simply filled with a black void.

I would like to find a way to replicate this feature for my game using MZ, and make it so the game can only be scaled up by multiples of 960x540.
I'd recommend using NRP_GameWindowSize plugin. It allows you to magnify the game window. You'll still need to redo your menus to accommodate the small size, though because RM has hardcoded values on some areas. OMORI menus are custom made so they adjust nicely.

Thank you for your answer! I'll make sure to check that out!

Original thread: https://forums.rpgmakerweb.com/threads/replicating-omoris-resolution-option-in-mz.152403/