on node-webkit freeze or input lag issue

Discussion and feedback on Construct 2

Post » Wed Aug 20, 2014 11:50 pm

Message: rogerwang can only post plain text URLS until they have 500 rep. 3 URLS modified. Why?
Hello,

I'm the maintainer of the node-webkit project. Recently I receive 2 issue reports on the integration of C2 and node-webkit. I would like to resolve it soon. But I didn't get much information in the issue page, so I'm looking for help here.

The input lag issue ( https://github.com/rogerwang/node-webkit/issues/2176 ) is found to be related to a startup argument C2 used in package.json. After removing it the issue is gone. But that leads to another issue about freezing: https://github.com/rogerwang/node-webkit/issues/1991 , which I need some help here.

Could anyone post a game URL that works well in Chrome 35 (which node-webkit 0.10.x is based on), but works badly in _original_ node-webkit v0.10.2? By "original" I mean you should download node-webkit v0.10.2, launch it without any arguments, and navigate to the game URL. That would help me pinpoint the root cause. Please leave your comments in https://github.com/rogerwang/node-webkit/issues/1991

And please do the following:
Download this, run the executable, navigate to 'chrome://gpu' and post the result here. And also please do the same in Chrome browser and post the result if your game works well in Chrome.

>>http://dl.node-webkit.org/live-build/09-02-2014/win64_master-build-161-982168c-8c5bc86-731b9e2-0f7c844-3d94950-86728d1/node-webkit-v0.10.3-win-ia32.zip<<
>>http://dl.node-webkit.org/live-build/09-02-2014/mac64_master-build-163-982168c-8c5bc86-731b9e2-0f7c844-3d94950-86728d1/node-webkit-v0.10.3-osx-x64.zip<<
>>http://dl.node-webkit.org/live-build/09-02-2014/linux64_master-build-158-982168c-8c5bc86-731b9e2-0f7c844-3d94950-86728d1/node-webkit-v0.10.3-linux-x64.tar.gz<<

Thanks in advance.

Roger
Last edited by rogerwang on Tue Sep 02, 2014 3:07 pm, edited 1 time in total.
B
4
Posts: 16
Reputation: 330

Post » Wed Aug 20, 2014 11:54 pm

Thanks for reaching out Roger! Super good of you to help out with this issue.
I believe in r177 Ashley implemented a workaround on C2's side to the first issue - can anyone with a mac confirm?
I've never personally encountered the second freezing issue but a bunch of folks here have, hopefully someone else can provide something.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Thu Aug 21, 2014 2:28 am

+1. Thanks for taking an interest in the C2 community! Personally, I've never had any consistent issues with node. I think I've experienced a freeze or two in the past, but I couldn't say for sure.

The general concensus about the freezing issue is that it happens after export, but not during preview. Also, that reverting to an earlier version of node seems to get rid of the problem (version 0.8.6 I think).

Here's a thread about it: two-node-webkit-problems-still-on-v-168-temp-freeze-fix_t95506?

Below are the names of some forum members who have reported freezing (posting their names will also alert them to this thread).

@Katala
@BrumanaGames
@arcgen
@Artsym
@EddyDingDongs
@Lunatrap
@Arima
@yumemiru2014
@shinkan
@slanw
@scaffa
@spongehammer
@megatronx
@transient
@LevelUpJordan
@FraktalZero
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Thu Aug 21, 2014 11:32 am

I don't have any examples, but all you need to do is to make a cube that does something, like sin movement, and let the exported game run, and observe. I started having freezing issues about 20 mins in to it.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Thu Aug 21, 2014 12:26 pm

Same as @megatronx.
In addition. Sometimes (but very very rarely) after 10-15 seconds games can freeze for about 2-4 seconds. After that all back to normal and no more freezing occurs for rest of the game.
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,599
Reputation: 34,835

Post » Thu Aug 21, 2014 2:32 pm

shinkan wrote:Same as @megatronx.
In addition. Sometimes (but very very rarely) after 10-15 seconds games can freeze for about 2-4 seconds. After that all back to normal and no more freezing occurs for rest of the game.


Yes, I should specify that too. First freeze lasts for some time, in my case it varied between few seconds to even several minutes. After that it might or might not happen again, and if it happens again the duration varies too.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Thu Aug 21, 2014 2:48 pm

I would strongly recommend that if you are affected, you still fulfil @rogerwang's request and provide an actual example for him to work with, even if it is trivial. It is actually relatively common that people assume something will reproduce in a new project when it does not, because the problem actually originated from something unique you did in a particular project. This is why .capx attachments are mandatory for Scirra bug reports. You should treat node-webkit bugs the same for the same reasons.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Thu Aug 21, 2014 10:04 pm

@Ashley - So any updates on this issue?

Yesterday, I downloaded the latest version of C2 and I exported my (currently developing) game for PC using Node Webkit for testing purposes.

The game was randomly freezing for no apparent reason - It would freeze for about 2 to 3 seconds then continue as normal.

I plan to have my game released on STEAM by February 2015.

I hope that this problem is fixed before then.

BTW @Ashley - Since I am making a PC game, would users need to have Google Chrome installed? I see the word Chrome popping up alot.
Last edited by vlweb3d on Thu Aug 21, 2014 10:08 pm, edited 2 times in total.
B
5
S
1
Posts: 53
Reputation: 490

Post » Thu Aug 21, 2014 10:04 pm

Don't have very much experience with node-webkit yet and hadn't experienced the freeze bug before.
But I did a test with a sprite and sine behavior, like megatronx mentioned. C2 node-webkit export is freezing very frequently. Get some freezing in "orginal" node-webkit version, didn't have chrome 35 installed but tried in 36 and haven't observed any freezing yet.

you can get files here

https://www.dropbox.com/sh/iyia6jc30cv39pi/AAB1N5sF3jxMntWKDg_0SEm8a/test

Link to html file
https://dl.dropboxusercontent.com/u/4320350/test/html/index.html

Hope it's to some help
B
15
S
3
G
3
Posts: 93
Reputation: 1,466

Post » Fri Aug 22, 2014 1:09 am

Giganten wrote:Don't have very much experience with node-webkit yet and hadn't experienced the freeze bug before.
But I did a test with a sprite and sine behavior, like megatronx mentioned. C2 node-webkit export is freezing very frequently. Get some freezing in "orginal" node-webkit version, didn't have chrome 35 installed but tried in 36 and haven't observed any freezing yet.

you can get files here

https://www.dropbox.com/sh/iyia6jc30cv39pi/AAB1N5sF3jxMntWKDg_0SEm8a/test

Link to html file
https://dl.dropboxusercontent.com/u/4320350/test/html/index.html

Hope it's to some help


Thanks.

"didn't have chrome 35 installed but tried in 36 and haven't observed any freezing yet." - do you mean you tested it in chrome or it somehow influences NW?
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Next

Return to Construct 2 General

Who is online

Users browsing this forum: delgado and 10 guests