Let's talk about the horrendous input lag in Chrome

Discussion and feedback on Construct 2

Post » Wed Dec 24, 2014 12:55 am

Is it related with creating/destroying objects? I remember noticing stuttering/etc in one of my projects when multiple objects were created and/or destroyed within a short timeframe.
B
43
S
19
G
65
Posts: 1,098
Reputation: 37,933

Post » Wed Dec 24, 2014 1:49 am

No, it's nothing to do with the logic side of things, because it's purely based on window size.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Wed Dec 24, 2014 3:49 am

Just saw this post in another topic.

Ashley wrote:At this point in time there are 3 main reasons games don't get to run buttery smooth (as far as I'm aware):

1) GPU blacklisting: although this is becoming less serious over time as old devices die out, it's still not too hard to find old Windows systems or old Android phones where the GPU is buggy and prone to crashing, so the browser falls back to software rendering.

2) Synchronous Javascript compilation. While most JS engines compile code concurrently, apparently they still have some key points which still run synchronously, so block the game while it does whatever it needs to do. I think this only affects mobile, since most desktops are simply fast enough to do that work in <16ms and not drop a frame. Javascript engine improvements should resolve this, we have open bugs with browser vendors for this type of issue.

3) V-sync quality. This is a passing issue in Chrome (the Chromium team is aware of it and are working to fix it) and Firefox (which to me looks already fixed in Nightly), and is made worse by the fact the latest node-webkit is based on Chromium 38 which has the bug. This will be fixed in due course as subsequent Chromium and node-webkit updates come through.


This issue definitely doesn't fit in any one of these categories. I don't think this is related to the v-sync issue at all, since these issues definitely happened in Chrome 38 and before that as well.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Wed Dec 24, 2014 5:35 am

@sqiddster
You are right, if capturing gameplay cause extra stutters then its going to kill your indie game due to how popular youtube reviews or livestream form the basis of grassroots marketing for indies.

But these stutters or input lag is definitely not present awhile ago in my own games, I only noticed it when I updated C2 and Chrome itself to newer versions. With NW 10.5 or Chrome prior to 38, it feels really smooth. With NW 11.x or Chrome 38+, I definitely see all the delays, stutter etc that you guys are talking about.

As I posted in another thread, I was previewing Star Nomad 2 for my nephews last week, its the first time they seen it, 5s into it, they both claimed "something's wrong, why is it so laggy"...
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Wed Dec 24, 2014 5:48 am

I've definitely been experiencing these stutters and latency since well before Chrome 38. @Aurel @Aphrodite can you confirm?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Wed Dec 24, 2014 10:54 am

I can confirm that when the window size was bigger than the window size parameter, I could see it (never reported it as I though it was really just my computer since nobody talked about that a lot in the past, not sure if the ratio between the real window size and the specified one is the culprit, or directly the real'size itself)

however, with no scrolling actions, it is not as visible
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Thu Dec 25, 2014 12:58 am

Wow, I don't read these forums much any more as I have mostly moved onto other engines, but it is very sad to hear the current state of affairs, as I still have a lot of love for C2. When you have 2 of your most high profile users (Aurel and Squiddster) nervous about releasing their games, Scirra really needs to have a rethink about the direction of the product.

I realise that native exports have been a hot topic forever on these forums, but I really think that C2 needs to be spawned off into another product that caters for this. Keep the HTML5 version but spin off the IDE into another that does exports using something something like Haxe or SFML. Yes, this will require a rewrite, but surely Scirra must be making some decent coin these days with the thousand of users and can afford to hire an extra dev or 2. The IDE and solid workflow is already established , but the exporters must be made a priority, even if it takes a year of rewrites. HTML5 is just not the ideal format yet, unless the web is your final destination, and even then it can be iffy at times.

Competing products Stencyl and GDevelop are both from solo devs, and have managed both native and web exports, so I can't believe Scirra could not pull this off. Hopefully there is a rethink in 2015! Oh, and Merry Christmas to the excellent Scirra community 8-)
B
11
S
2
G
1
Posts: 108
Reputation: 1,899

Post » Thu Dec 25, 2014 10:25 am

sqiddster wrote:I've definitely been experiencing these stutters and latency since well before Chrome 38. @Aurel @Aphrodite can you confirm?


I had things stuttering like year and two years ago already.
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 Dec 25, 2014 1:35 pm

megatronx wrote:
sqiddster wrote:I've definitely been experiencing these stutters and latency since well before Chrome 38. @Aurel @Aphrodite can you confirm?


I had things stuttering like year and two years ago already.


Possibly due to nVidia disabling some of their GPU when detecting browsers, defaulting to the Intel HD graphics? I saw it was a known glitch. I didn't have such issues because I've been using AMD graphics for the past few years.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Thu Dec 25, 2014 10:52 pm

Silverforce wrote:
megatronx wrote:
sqiddster wrote:I've definitely been experiencing these stutters and latency since well before Chrome 38. @Aurel @Aphrodite can you confirm?


I had things stuttering like year and two years ago already.


Possibly due to nVidia disabling some of their GPU when detecting browsers, defaulting to the Intel HD graphics? I saw it was a known glitch. I didn't have such issues because I've been using AMD graphics for the past few years.


It was in node webkit. I have i5 sandy bridge and back then had gtx 560.
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

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests