Jitters in scrolling after export to html or node-webkit

Discussion and feedback on Construct 2

Post » Tue Sep 23, 2014 12:33 pm

I have a strange problem with jittering while scrolling, the strangest thing is that this does not happens when previewing the project from the capx, only after exporting to html5 or node-webkit.
I am printing the fps to the browser log, when i walk to the edge of the screen the scene scrolls, when previewing fps remains on a steady 60, after export there are some small drops but nothing below 55, i don't know why, but still it's high enough, it shouldn't jitter.
The other strange thing is after i scroll a few times back and forth, it stops jitter and remains on a steady 60 fps.

Has anyone encountered this problem or have any suggestion on how to fix this?

Here is an online link of the game, press skip (to skip tutorial, then walk around in the house).

https://ea14537672eb44ada25c6048dea91f1 ... Z0M05MN0k/

oh and my scrolling event is:

scroll to
lerp(scrollx, scrollToX, 1*dt)
lerp(scrolly, actor_joe.Y, 1*dt)

scrollToX is var i change when i need to push the camera around.
In this case when the actor is at a certain distance from the edge of the viewport.
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713

Post » Tue Sep 23, 2014 1:12 pm

Have you tried the latest beta (currently r181)? Node-webkit have fixed some issues with freezes/performance recently, and the latest betas include the latest node-webkit releases.
Scirra Founder
B
399
S
236
G
89
Posts: 24,523
Reputation: 195,379

Post » Tue Sep 23, 2014 1:23 pm

No i didn't see there was a 181 version, downloading it now!
GREAT feature addon - global layer, brilliant!
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713

Post » Tue Sep 23, 2014 1:38 pm

@Ashley I update the link with an export from 181r, it still happens (it's more severe in node-webkit, on 180 as well).
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713

Post » Tue Sep 23, 2014 2:10 pm

@Lof - does it only happen in node-webkit or does it also happen in Chrome? Your link is to a game that runs in the browser, not a node-webkit download.
Scirra Founder
B
399
S
236
G
89
Posts: 24,523
Reputation: 195,379

Post » Tue Sep 23, 2014 2:53 pm

@Ashley It happens in both, just more severe in nodewebkit which is the platform I want the final product to run on.
I am not home now and I didn't upload the 181 version, but here's the 180 one which works the same:
https://googledrive.com/host/0B3JLq-yXZ ... /lofPC.zip
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713

Post » Tue Sep 23, 2014 3:02 pm

@Lof - it runs perfectly in Chrome here. Can you reproduce on any other machines or other browsers like Firefox/IE?
Scirra Founder
B
399
S
236
G
89
Posts: 24,523
Reputation: 195,379

Post » Tue Sep 23, 2014 3:18 pm

I tested it on two machines, I didn't try ie or Firefox since nodewebkit is chrome based but ull try when I'll be next to a computer.
How does the node version runs on your machine?
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713

Post » Tue Sep 23, 2014 4:11 pm

Just tried you're NW download and it's smooth - no jitter at all.

Nice looking game BTW.

My system, in case: Win 7 64bit, GTX 560 Ti 1GB
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,487
Reputation: 59,760

Post » Tue Sep 23, 2014 11:15 pm

@zenox98 Thanks for testing and i am glad you liked it!

@Ashely I tried it in firefox, same jitters, on IE it doesn't load at all, but i don't really mind.
What really baffles me is that it doesn't happens when i preview the project, in preview it runs smoothly, is there any difference in rendering between preview and export?
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests