How to Update NW.js to Dramatically improve Game Performance!

ShiningPhoibe

Veteran
Veteran
Joined
May 12, 2020
Messages
166
Reaction score
68
First Language
French
Primarily Uses
RMMZ
Hello.
I'm considering doing this for my MZ game. What version of Pixi would you recommend? I checked the file and it says v5.2.4. Should I leave Pixi alone?
 

Yilou

Veteran
Veteran
Joined
Apr 3, 2020
Messages
93
Reaction score
13
First Language
Russian
Primarily Uses
RMMV
Just to follow up, this version of nwjs seems to do something slightly different with the windows. If I call Graphics._switchFullScreen() or Graphics._requestFullScreen() in a plugin, when I start the game, it briefly flashes into full screen, then goes back to window. If I call those functions through a script call before the title screen (luckily I have pre-title events), the calls work just fine and the game starts in fullscreen seamlessly. (And F4 works fine either way.)

My guess is that the old nwjs used to set the window dimensions first and then process plugins, while this one loads the plugins before it sets the window, so the later call is resetting the plugin calls. But, just a guess.

In any case, if you were using those calls in a plugin to start in fullscreen, you might have to use them as a script call in-game (e.g. pre-title event)... or, this could be something with my set up only. I didn't actually test a blank project. YMMV.
I have the same problem, how can I call the call script before the title screen?
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
So what's the latest version of NWJS that people have gotten to work flawlessly?

Edit: Nvm, I just upgraded from v0.57.1 to v0.64.1!
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,985
Reaction score
2,343
First Language
Dutch
Primarily Uses
RMMV
I tried both, but it doesn't seem to work as I get drawImage error on boot.
I dont know why though, so I have no clue what I do wrong as I followed
the tutorial video 100% correctly.

the title scene works, new game does not, even on a clean project.
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
I tried both, but it doesn't seem to work as I get drawImage error on boot.
I dont know why though, so I have no clue what I do wrong as I followed
the tutorial video 100% correctly.

the title scene works, new game does not, even on a clean project.
If you'd like, I can upload a copy of my nwjs-win & nwjs-win-test folders onto Dropbox or Google Drive.
 

Raizen

Veteran
Veteran
Joined
Oct 24, 2012
Messages
433
Reaction score
756
First Language
Portuguese
Primarily Uses
RMMV
Hello.
I'm considering doing this for my MZ game. What version of Pixi would you recommend? I checked the file and it says v5.2.4. Should I leave Pixi alone?
Everything you can update, you do update, it shouldn't be an issue, but usually it can havesome improvements on the game :)
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,985
Reaction score
2,343
First Language
Dutch
Primarily Uses
RMMV
@Frostorm what version do you use? if its 49.2 or another, it's good to
test anyway.

DM the link and I can try out.
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
@Frostorm what version do you use?
I'm using v0.64.1 (64-bit). @ShadowDragon reports that 32-bit doesn't work. I imagine it's cuz I only downloaded the 64-bit SDK? Not sure, but for anyone that wants it, I have uploaded my nwjs-win & nwjs-win-test folders onto Google Drive. Simply replace your nwjs-win & nwjs-win-test folders, but remember to create a backup just in case.
 

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
310
Reaction score
451
First Language
English
Primarily Uses
RMMV
Two questions...
1. Any concerns with using a 32bit version of nwjs? People are asking me for 32-bit support for my game.

2. Is there any 32bit version of nwjs known to integrate with Steamworks?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,985
Reaction score
2,343
First Language
Dutch
Primarily Uses
RMMV
@masterlobo
my MV version is installed on x84 folder for some reason,
and have 64bit version of windows.

32bit version is something I dont get to work somehow.
but so far I know, 64bit version should work on a 32bit version as well.
specially vice versa.
 

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
310
Reaction score
451
First Language
English
Primarily Uses
RMMV
@masterlobo
my MV version is installed on x84 folder for some reason,
and have 64bit version of windows.

32bit version is something I dont get to work somehow.
but so far I know, 64bit version should work on a 32bit version as well.
specially vice versa.

No, my 64bit app doesn't work on 32-bit environments. Steam won't even allow the installation of it.
3AFE974866E7B09637F7F6DE1086176EB2379E7D
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,985
Reaction score
2,343
First Language
Dutch
Primarily Uses
RMMV
weird, I got both 64bit and 32bit as that mostly comes on pc's
from 2010? or later?

I dont really thing 32bit is even sold, or they have really old window,
I cant remember what is the oldest that only have 32bit.
 
Joined
Jul 19, 2022
Messages
1
Reaction score
1
First Language
English
Primarily Uses
RMMV
No, my 64bit app doesn't work on 32-bit environments. Steam won't even allow the installation of it.
3AFE974866E7B09637F7F6DE1086176EB2379E7D
Hey I could be misremembering but I'm pretty sure this error is a result of your settings in steamworks.
You should be able to configure what your game supports as part of the builds page. IIRC theres a checkbox there for 64 and 32 bit support for windows.
 

HalcyanStudio

Eniko Ghosts of Grace Dev
Veteran
Joined
Mar 16, 2012
Messages
1,033
Reaction score
713
First Language
Dutch
Primarily Uses
RMMV
Hey I could be misremembering but I'm pretty sure this error is a result of your settings in steamworks.
You should be able to configure what your game supports as part of the builds page. IIRC theres a checkbox there for 64 and 32 bit support for windows.
Can confirm this.
 

EndlessGame

Veteran
Veteran
Joined
Jun 17, 2020
Messages
141
Reaction score
33
First Language
English
Primarily Uses
RMMV
This worked amazingly. Thank you!
 

EndlessGame

Veteran
Veteran
Joined
Jun 17, 2020
Messages
141
Reaction score
33
First Language
English
Primarily Uses
RMMV
This worked amazingly. Thank you!
The only issue is that my gamepad configuration plugin isn't working anymore. Different buttons mean different things now. Odd. I'll try a different gamepad plugin to see if the issue is fixed.
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
509
Reaction score
485
First Language
English
Primarily Uses
RMMZ
The only issue is that my gamepad configuration plugin isn't working anymore. Different buttons mean different things now. Odd. I'll try a different gamepad plugin to see if the issue is fixed.
If you upgrade NW.js to version 0.49 or higher, it can break plugins that involve input or window manipulation. I personally recommend going with version 0.48.4 (the same one MZ uses). I haven't noticed any notable performance benefits from going higher than that, and it should be safe for all of your plugins.
 

EndlessGame

Veteran
Veteran
Joined
Jun 17, 2020
Messages
141
Reaction score
33
First Language
English
Primarily Uses
RMMV
If you upgrade NW.js to version 0.49 or higher, it can break plugins that involve input or window manipulation. I personally recommend going with version 0.48.4 (the same one MZ uses). I haven't noticed any notable performance benefits from going higher than that, and it should be safe for all of your plugins.
Ah, I see. Would reverting from the newest version to 0.48.4 be the same process as I did before?
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
509
Reaction score
485
First Language
English
Primarily Uses
RMMZ
Ah, I see. Would reverting from the newest version to 0.48.4 be the same process as I did before?
Yeah, it would be the same. But it's possible that you will start getting the NW.js profile error mentioned in the original post. If that happens, then you just gotta delete the files mentioned in the original post:

  1. To fix this error click your file explorer and type in %LOCALAPPDATA%/ (You can also go to users/*your user name*/Appdata/Local to achieve same effect)
  2. Then go into KADOKAWA\RPGMV\User Data\Default
  3. Delete both Web Data and Web Data-journal.
 

Latest Threads

Latest Posts

Latest Profile Posts

I just got all of my wisdom teeth out today, thankfully I have the rest of the week off.
Man I am learning I am bad at naming armor lmao.
The game's opening, now fully polished! :LZScheeze:





Aaand, here's me working on it in today's "Game Making Every Day" video! :LZSooo:

Hello! Can anyone help me? I followed making cooking tutorial for RPG Maker MV. But for some reason buff state that food gives doesn't work in overworld. It disappears. What am I supposed to do?
A shotgun is not a rifle. Huh.

Forum statistics

Threads
124,406
Messages
1,163,385
Members
163,201
Latest member
YoBa
Top