Strange Performances issues with chrome/NW.js

Discussion and feedback on Construct 2

Post » Tue Dec 01, 2015 8:12 am

Hi there Y'all,

I'm having a rather strange issue with the way my game performs, namely in NW.js,

First off, when I run the game in Chrome, NOT in fullscreen, it performs terribly :( . However when I created an Event using the browser object to request fullscreen when the player hits "P", and the browser goes fullscreen, the whole thing just smooths right out, from input latency and constant stuttering to silky and smooth as butter :o , no real stuttering at all, this was a relief because I suppose it negates the likelihood that my admittedly amateurish coding or events were the culprit, or the way in which I've arranged the art assets.

The problem is, when I preview the game in NW.js, in windowed form (480,270) everything appears to be fine, though admittedly I am squinting trying to see the thing It seems clear it's running just fine inside the box. Hit "P", and everything just tanks. I'm not sure of the exact FPS, but it is in an unplayable state, constant stuttering and input latency. In fullscreen NW.js, it runs at least as bad if not worse than Chrome does in it's not fullscreen state. :cry:

So I exported the games using NW.js just to make sure the issues don't get ironed out somehow when exported and unfortunately they don't, the exported version is just as bad, fine windowed, broken in fullscreen.

Personally this is alarming because I intend for this to be a desktop game, I hope to put it up on steam and everything, and I need to be able to export in a good state in order to do that.

The game is pixel-arty, not too demanding and Chrome can obviously run the thing, so what could be causing this issue?

For reference, I've also tried running the game using firefox, it runs alright though does stutter a bit, still much better than NW.js, and fullscreen seems to do little to the games performances in this scenario. I also tried explorer, where it also runs alright, just this weird intermittent TICK jarring the game, explorer won't allow me to go fullscreen.

I haven't included a cap.x because, well, the games kinda big. Not in terms of size (it's only 18.6MB according to the editor) but there are a lot (hundreds if not more) of original assets in the project. I guess I could make a super striped down one but that would take some time and I'm kinda hoping there is a remedy to this that will allow me to continue with this rather long project I've been working on with the peace of mind that it won't be in vein because of some weird performance problem.

Thanks for reading :D
B
28
S
8
G
2
Posts: 29
Reputation: 2,751

Post » Tue Dec 01, 2015 8:29 am

There are still issues with NW.js that need ironing out, but the latest Alpha builds are getting there.

What version of C2 and NW,js are you using?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
126
S
29
G
73
Posts: 5,091
Reputation: 52,002

Post » Tue Dec 01, 2015 8:42 am

You are describing that jank and stutter behavior that is well known for NW in recent times.

The 0.13 alpha 6 and 7 are excellent so far for performance, smoothness. There's still some minor things that needs to be smoothed out but it will be fine.

@Danwood has good results with his epic survival game as well as other testers.
B
67
S
24
G
19
Posts: 1,754
Reputation: 17,526

Post » Tue Dec 01, 2015 8:55 am

Thanks for the replies, it's nice to hear this is being worked on. I was semi aware of jank issues regarding NW.js, but I thought they would manifest in Chrome as well, and Chrome in fullscreen running near perfect kinda through me for a loop. at least I have a way to preview without issues. : )

I guess i'll wait and see what future builds of NW.js are like and truck on the ever optimist.

@zenox I have the steam license, I'm not sure what NW.js version I have but I'm using r216 at the moment

Thanks guys
B
28
S
8
G
2
Posts: 29
Reputation: 2,751

Post » Tue Dec 01, 2015 9:43 am

Chrome is is updated to fix the issues.

NW is still using very outdated Chromium builds that are plagued with problems. The latest NW 0.13 alpha 6 and 7 are on recent Chromium.
B
67
S
24
G
19
Posts: 1,754
Reputation: 17,526

Post » Tue Dec 01, 2015 3:17 pm

You're probably using NW 0.12 which stil has the awful jank issues. I recommend updating to r218 beta, download NW 0.13 alpha 7 http://dl.nwjs.io/live-build/12-01-2015 ... 3.0-alpha7 ( last two files, respectively for 32 and 64) and place in the respective 32/64 folders on the NW.js installation for C2 you have in your program files.

Newer NW.js fixes the jank for me and reduces CPU usage by ~20%. My game is massively large and it's running well on my mid/low end system. Some users still have issues though, as html5/C2 isn't the perfect combo for large games, but nowadays systems should handle them anyway, especially considering Html5 is an evolving technology.
B
60
S
20
G
4
Posts: 350
Reputation: 6,214

Post » Wed Dec 02, 2015 5:45 pm

@Danwood , I was having issues too, I downloaded the alpha from scirra's page plus using r218 beta as well. I have some performance issues here and there yet its only a prototype. I didn't have this issue before. Also I had to delete AJAX plugin to be able to test.

Maybe I'm doing something wrong in the way I'm installing nw ?

Thanks
B
39
S
10
G
14
Posts: 488
Reputation: 10,270

Post » Thu Dec 03, 2015 10:47 am

@FraktalZero which version of NW were you using prior of 0.13 alpha?
B
60
S
20
G
4
Posts: 350
Reputation: 6,214

Post » Thu Dec 03, 2015 1:24 pm

@Danwood, I think 0.12. I saw around the forums and several users are talking about similar issues.
B
39
S
10
G
14
Posts: 488
Reputation: 10,270

Post » Fri Dec 04, 2015 6:37 am

I don't know about AJAX as i dont use it, but 0.13 is a performance improvements for me, alpha 5 & 6 still had issue, but 7 so far is good. If you still have performance problem the cause may be difficult to isolate, maybe it's your system? Do you have a laptop with integrated graphics? do yo uuse your graphics card for nw.exe?
B
60
S
20
G
4
Posts: 350
Reputation: 6,214

Next

Return to Construct 2 General

Who is online

Users browsing this forum: angryscientist and 5 guests