Pixel Perfect Scaling Mode

Pixel Perfect Scaling Mode 1.2.1
Galenmereth
​

Introduction
This plugins enables pixel-perfect scaling in RPG Maker MV and MZ, without any configuration. Optionally you can enable an in-game option menu addition so that your players can toggle it off or on. The label for this menu option is configurable.

By default when players scale the window or run the game in fullscreen with scaling on (F4), or run their OS in a scaled mode, the scaling blurs pixels in the entire scene, causing the effect of it looking "out of focus" as you can see in the "off" portion of the image below. This plugin remedies that. The caveat is there'll be no smoothing / blurring of fonts either, so it might not be suitable for every art style out there. But for chunky pixel art games, it makes a big difference.

Features
* Works in MV and MZ
* Default behavior requires no configuration - Just enable the plugin and you get the pixel scale mode
* Optionally you can also enable an in-game options menu with a customizable label so that your players can opt in or out of the new scale mode

Screenshots
PixelPerfectBanner.png


PixelPerfectExample2.png


Spoiler: Show plugin parameters and in-game options
1743254930846.png

1743255026503.png

Video showcase
Best viewed fullscreen with quality set to 1440p for the best effect.


How to Use
Put the script in your <ProjectFolder>/js/plugins folder, then select it in the editor's PluginManager. If you want to use the in-game menu, place it last in order of plugins for best compatibility.

Plugin Commands / Script Calls
There are no plugin commands or script calls

Demo
The script is very simple so I've opted not to include a demo, but if there's demand for it, I can add one 🙂

Changelog
1.2.1 - Polyfill to work with MV in addition to MZ after 1.2.0 update.
1.2.0 - Fix fullscreen scaling and pixel blur due to subpixel alignments in CSS. Also implement an optional "Allow stretch scaling" feature which, if off, only allows whole-integer scaling to fully remedy any subpixel issues.
1.1.1 - Fix scaling issue on sprites when using in-engine scaling by disabling Bitmap smoothing
1.1.0 - Initial public release

Download

Terms and Credits
MIT License - Free for commercial use in any game. Don't remove the license from the script file itself. Credit appreciated, but not required.
Wow thank you! I was always bothered about that feature of RPG Maker's games, but it feels great knowing there's someone out there willing to remedy that for the betterment of the engine. Awesomesauce!
Simply beautiful, thank you!
Hello, for some reason it just remains the same, do I need other plugins for this to work? (I am using MV)
Oh, brilliant!!
I absolutely love pixel art, and the blurry scaling always bothered me way too much.
This is plug-in is an absolute saviour! Thank you!!!
This is so perfect, was looking for something like this before, happy it was made! Very good job!
Looks like a plugin I could use, but since I moved to the UK, I use £ instead of $. Will this be a problem when I purchase it or does it automatically convert? This is my first time buying a plugin so I would like to know, thanks!

It seems to work for most people, but David Uchina seemed to have trouble getting it to work. Is there really a chance it won't work? If I'm going to buy something, no matter how cheap, there should be no issues like that.
This plugin does seem to fix the blurry issue in windowed mode, but when viewing in full screen or stretching the window the quality of the pixel correction is a little...off.

quality.png


Have you run into any plugin conflicts when creating this? I haven't run into any crashes or incompatibility issues and i've been mostly testing without any activated plugins.
I really like it
Looks like a plugin I could use, but since I moved to the UK, I use £ instead of $. Will this be a problem when I purchase it or does it automatically convert? This is my first time buying a plugin so I would like to know, thanks!

It seems to work for most people, but David Uchina seemed to have trouble getting it to work. Is there really a chance it won't work? If I'm going to buy something, no matter how cheap, there should be no issues like that.
I apologize for the veeeeeeeery late response, 3 windows reinstalls later and its working, i kinda gave up on rpgm for a little while and started again because i got bored, it works just fine and it's also free
I apologize for the veeeeeeeery late response, 3 windows reinstalls later and its working, i kinda gave up on rpgm for a little while and started again because i got bored, it works just fine and it's also free
Oh! Well perfect! This was a pleasant surprise. Thank you for letting me know.
Incredible, would a script call be possible? In my game the options menu is custom made manually. The player does not have access to the standard RPG MAKER menu
Found bugs that occur on the two available parameter options.

1) When options is set to none, the quality is badly pixelated, irregardless if it's a simple sprite or a more detailed one, exiting and re-entering full screen sometimes fixes this but it shows inconsistency.

2) When using the in game option, quality is perhaps more random and will require the user to play around with the screen, toggling on and off the options to eventually get the desired crisp result.
i am trying to implement your plugin into my game with the yanfly option core plugin. but i am just to bad at coding :/
this doesn't seem to effect enemy battle sprites or if it does they still seem to be blurry any way to fix this?

Edit: never mind found the problem
will try this
Hi! I recently started using this plugin and have run into some issues. In windowed mode, it does what it says on the tin, but something's going wrong when I go into Fullscreen using F4.

For the record, I'm using RPG Maker MZ and the resolution I use is 544x416, with 32x32 tiles.

WINDOWED MODE:
1676898645730.png


Notice how everything is pixel-perfect and everything?

Here's what happens when I go into fullscreen mode.

FULLSCREEN MODE:
1676898714989.png


Do you have any fixes for this? Thanks in advance!!
Thank you for the great plugin. Could you please add the ON/OFF plug-in command?

Thank you for the great plugin. Could you please add the ON/OFF plug-in command?
I solved this!
Hello! The plugin doesn't work in my game somehow, MZ, installed by the instructions
Hello! The plugin doesn't work in my game somehow, MZ, installed by the instructions
What precisely does “doesn’t work” mean? I doubt anyone will be able to help you with this lack of information…

Original thread: https://forums.rpgmakerweb.com/threads/pixel-perfect-scaling-mode.141354/