MZ Standalone NW.js build looks blurry and less sharp compared to Playtest execution [FIXED]

Hey there,
For several months now, I've been experiencing a fairly significant issue when exporting my game to a standalone nw.js instance.

Specifically, when I run the game instance within the RPG Maker MZ engine (Version 1.10.0), the nw.js SDK loads correctly with the following properties:
  • nw.js v0.109.0
  • Node v25.2.1
  • Chromium 146.0.7680.31

Here's the URL to the nw.js version im using: https://dl.nwjs.io/v0.109.0/

Instead of using the default distribution provided by RPG Maker, I created a custom build. However, once the game’s standalone directory is set up correctly (which is an exact copy of the nwjs-win folder from RPG Maker MZ) and nw.js executable is launched the game launches without issues or internal errors and the entire 2D UI rendered via Canvas2D bitmaps is displayed correctly at the preset resolution. On the other hand, everything related to the game map, specifically tilesets and event sprites, appears to suffer a drop in quality; consequently, the entire portion rendered by the WebGL canvas becomes blurry and loses detail, making the game appear less sharp and crisp.


Here's what I have checked:
  • I checked the SHA of both nw.exe files (RPG Maker directory and Standalone), and they are identical.
  • I tried creating a new blank project to see if the issue was caused by one of my plugins, but even with a blank project and using the default distribution, the map still appears less sharp and crisp.
  • I am using a Pixel Perfect plugin.
  • I am using third-party software TileD for the for managing and creating game maps, using the VisuMZ_5_TiledMZ.js plugin as bridge.
My current package.json is structured

{
“name”: “rmmz-game”,
“main”: “index.html”,
“chromium-args”: “--force-color-profile=srgb”,
“window”: {
“title”: “game-title”,
“width”: 1280,
“height”: 960,
“position”: “center”,
“icon”: “icon/icon.png”
}
}

I’ve attached below the two comparisons between the playtest version and the standalone nw.js version.
Thank you in advance to anyone who can provide a solution or assistance.


PLAYTEST EXECUTION

1775738574182.png




STANDALONE NW.JS EXECUTION
1775738617380.png

THE FIX​

After three months of searching, I finally figured it out. The playtest is a process that is launched with the environment variable SteamAppId=1096900, which, as it happens, is the AppID for RPG Maker MZ, by creating a batch file like this:


off
set SteamAppId=1096900
“%~dp0Game.exe”


And by launching the game in the deployed folder using this .bat file, the resolution is the same as in the playtest, but that's not enough, because that would mean you'd have to have RPG Maker MZ on your Steam profile.


THE FINAL SOLUTION​

In the end, I think I’ve found the definitive solution to the problem. Using a screenshot plugin that captures the canvas, I realized that when I took a screenshot during the playtest, the resolution looked EXACTLY the same as the deployed game. So, the degraded resolution is nothing more than a Steam shader. I recreated the shader using a plugin, and that solved everything.


If anyone finds themselves in this situation, at least they’ll know what to do, or, if not, web crawlers will find this page and the AI will know how to help you better!

Original thread: https://forums.rpgmakerweb.com/threads/standalone-nw-js-build-looks-blurry-and-less-sharp-compared-to-playtest-execution-fixed.183190/