As implied by the title, it doesn't if it's launched from editor mode. I've also asked a few people and it flickers only on my computer (thankfully). But still... anyone's got any clue?
MZ Game flickers massively AFTER deployment
Javascript/Plugin Supportmy first guess would be an agressive protection program that constantly scans the "website" that you're currently visiting, causing load delays on all assets..
you can usually test that by adding the deployment folder to the whitelist.
you can usually test that by adding the deployment folder to the whitelist.
I'm not sure I understand what you mean... which "website"?
Also the game works totally fine from the editor (again, thankfully) but is horrible to play once deployed. What's a difference between before and after deployment that could be causing such an issue?
I'm guessing Andar is referring to the game itself as a "website" since it technically launches a Chromium browser
yes
MV and MZ create HTML5-based games, and there are a lot of protection programs that simply cannot see the difference between a local HTML-based program and an external website.
(and that is no bug in them but intentional as a virus tries to disguise itself in various ways).
that is why I placed the website term in quotes as the game is not really a website but will appear to the protection program like one.
MV and MZ create HTML5-based games, and there are a lot of protection programs that simply cannot see the difference between a local HTML-based program and an external website.
(and that is no bug in them but intentional as a virus tries to disguise itself in various ways).
that is why I placed the website term in quotes as the game is not really a website but will appear to the protection program like one.
I added the folder as an "exclusion" but it's still doing it...
are deployment and project folder on the same harddrive?
The playtest loads from the project folder, after deployment the resources are loaded from the new folder.
So the difference might be caused by something there, different harddrives or accidentally deployed into a restricted folder or something like that.
The playtest loads from the project folder, after deployment the resources are loaded from the new folder.
So the difference might be caused by something there, different harddrives or accidentally deployed into a restricted folder or something like that.
Nope, it's the same hard drive.
As far as I'm aware, the main differences are:
Some ideas:
- The editor runs via an SDK build of NWJS ("software development kit", i.e. it has developer tools), whereas a deployed game runs without the dev stuff.
- Editor launches the app with a "test" flag: certain core/plugin features check & react to that.
- You are more likely than your players to have used a different version of NWJS on your system. In that case, perhaps some settings/cache on your system is being referenced incorrectly.
- The deployed game uses a slightly different folder structure. Probably irrelevant.
Some ideas:
- You can press F2 in-game to show the framerate widget. How does the framerate compare while playing playtest vs deployed?
- If you open the Task Manager (or Mac/Linux equivalent), do you see any differences in resource usage (CPU/RAM/Disk/etc) while playing playtest vs deployed?
- Try temporarily putting the deployed game into the same folder as the project, e.g.
RPG_Maker_Stuff ⌊ ProjectFolder ⌊ ... ⌊ index.html ⌊ DeployedGameFolder ⌊ ... ⌊ Game.exe
- Might be worth triple-checking that you haven't accidentally put the deployed game in a cloud-sync folder (e.g. OneDrive).
- It's cliche, but if you haven't already done so since deploying, try restarting your system. Can potentially fix a lot of strange problems!
- If your system has multiple GPUs (common in laptops, for example) then it might just be some problem with it using the wrong GPU, possibly one with an outdated driver. Windows 10+ lets you select the GPU on a per-app basis via the OS settings (
Windows+I-> Graphics settings).
- You could try checking for a graphics driver update...? Check via the manufacturer's site or the dedicated GPU app, not through e.g. Windows Update. Not sure why that might affect only the deployed app, but it's worth checking anyway.
- Did you manually upgrade NWJS? If so then you might want to double-check you did everything correctly.
Original thread: https://forums.rpgmakerweb.com/threads/game-flickers-massively-after-deployment.182715/