MZ Pixel perfect rendering incorrectly in fullscreen

I've had this long time issue of whenever I fullscreen my game with MZ and pixel-perfect image rendering (VisuMZ) the pixels of everything will look off and weird. Singular pixels will either be half it's size or too large.
The first image is of the character standing in the middle of the room while fullscreened.
The second image is the same though windowed instead.

I've also noticed when standing in certain areas of the screen or in smaller rooms the sprite will render correctly? In the last image of the darker room, the character is standing on the far right of my screen in a smaller room and looks relatively fine.

I'm purely using VisuMZ's core engine plugin to render pixel perfect although every other plugin that renders pixel perfect keeps this issue. Any help would be greatly appreciated. Additionally, I've also tried changing screen width and height to no avail, though I'm currently at the default of 816 x 624.

image_2026-05-26_105838832.png<---Windowed (Good)

image_2026-05-26_105829026.png<--- Fullscreen (Bad)
There are several topics on the subject with some explanations of why this happens.

Perhaps something here will shed light on the matter and help you find a more appropriate solution:
Hi there!

One of the things that can be causing this is a incompatible fullscreen resolution.
Let's say you have a 2560x1440 monitor.
Your game resolution is 816x624.

When you go fullscreen, the game's resolution will try to fit into your monitor resolution. It will calculate how far it can go:

  • Width → 2560/816 = 3,137254901960784
  • height → 1440/624 = 2,307692307692308

So your game height is being multiplied by 2,307692307692308 and your game width is being multiplied by 3,137254901960784. It's impossivle to keep a pixel perfect while the game window is resizing like that.

That is why resolution matters. You either need to have a game resolution that can match the most common resolutions(16/9) or find a way to resize the screen only by integer numbers.

You can try using my EliMZ_ScreenManager for that. It has an option to scale the window only by integers. So your game resolution will scale width and height by the same integer number.

On the example above, using my plugin, it would let your game with that resolution:

  • 816*2 = 1632
  • 624*2 = 1248
Because he know if it go higher than that, it will have to fit into the fullscreen and scramble the aspect ratio.

EliMZ_ScreenManager.js

you also need my core plugin, EliMZ_Book.js, somewhere above all Eli plugins:

If you want, you can also use my pixel perfect plugin:
There are several topics on the subject with some explanations of why this happens.

Perhaps something here will shed light on the matter and help you find a more appropriate solution:
Thank you for the forum references, I eventually fixed it after some trial and error but it now renders and looks great!
image_2026-05-26_125244638.png
I found that the weird resolution of 630x456 somehow fixed it?
JavaScript:
Code:
/*:
 * @target MV MZ
 * @plugindesc Integer game canvas scale.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/164033/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (function(alias) {
  Graphics._updateRealScale = function() {
    alias.apply(this, arguments);
    if (this._realScale > 1)
      this._realScale = Math.floor(this._realScale);
  };
})(Graphics._updateRealScale);
Using this plugin alongside a pixel perfect plugin allowed the game to render properly in windowed and fullscreen.

You can try using my EliMZ_ScreenManager for that. It has an option to scale the window only by integers. So your game resolution will scale width and height by the same integer number.
Also I didn't need this initially, but seeing as the resolution isn't natural I'm probably gonna use this later on, thanks in advance!

Original thread: https://forums.rpgmakerweb.com/threads/pixel-perfect-rendering-incorrectly-in-fullscreen.183817/