Jittering on a simple scrolling project

Discussion and feedback on Construct 2

Post » Mon Jan 05, 2015 4:04 pm

Hello everyone,

I need some help, i'm having troubles with a project, i was planning on making a fast passed scrolling type game (you have to dodge things and collect coins) for mobiles.
But i'm seeing some jittering. My fps (mainly 60fps on the main project) and cpu / memory usage is fine.

Here a simplified capx for exemple (it even happens on something so simple).

The background isn't moving smoothly (some times it's worse than others) .
I know the background is pretty big (i used a tiledbackground for this test, but it was the same with a sprite background).

Any suggestion to improve the performances ? (Knowing i'm planning on having multiple backgrounds, items and ennemies spawning.)

I have tested this on various computers, chrome (lastest version) / firefox / ie, and multiple Construct2 versions (lastest beta too). Having always the same result.

Thanks for the help.
You do not have the required permissions to view the files attached to this post.
... "Je suis CHARLIE" ...
B
30
S
6
G
2
Posts: 43
Reputation: 2,075

Post » Mon Jan 05, 2015 4:32 pm

I'm using latest Firefox and I'm not seeing any jittering at all.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Mon Jan 05, 2015 5:40 pm

zenox98 wrote:I'm using latest Firefox and I'm not seeing any jittering at all.


Thanks for your feedback, on firefox and ie the jitter is actually way lower, but it still happens sometimes, like every 2 - 3 secs (way more visible on a bigger project), some may consider this like a minor problem, but if you are aiming for some fast passed movement game (for mobiles and web), it can be really frustrating (considering Chrome is widely used).

Ashley previously posted on another post, that micro stuttering problem could be a Garbage collection issue, but it's unlikely for this project (considering the size off this example capx).
... "Je suis CHARLIE" ...
B
30
S
6
G
2
Posts: 43
Reputation: 2,075

Post » Mon Jan 05, 2015 5:57 pm

I ran it for a full 60 seconds and it didn't jitter at all - perfectly smooth scrolling, as far as my tired old eyes could discern.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Mon Jan 05, 2015 6:15 pm

It's jittering for me as well, much worse in chrome then in firefox. At first in firefox I didn't even notice it.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 05, 2015 11:00 pm

Firefox - jittering
Chrome - jittering
Internet Explorer - small jitter every a few seconds

summary: you can do nice HTML5 games, but you can't play them well :D
B
18
S
7
G
1
Posts: 783
Reputation: 4,247

Post » Mon Jan 05, 2015 11:28 pm

Try it with Node 10.5... I would but I'm using my phone....
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

Post » Mon Jan 05, 2015 11:49 pm

i have jittering too in Firefox 34.0.5 but i thought thats the normal jitter thats happening in the current browser versions?
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Tue Jan 06, 2015 1:21 am

Node 10.5 is very smooth with no stutter at all.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

Post » Tue Jan 06, 2015 1:32 am

Node 10.5 is pretty smooth, even with streaming/fraps (which was a concern of mine):

http://youtu.be/xhtZhiVgwLU?t=24m18s

Switch it to 720p 60fps mode. I've got a few mega parallax BGs, 9600 pixels large overlap.

My disk is a bit slow so when I fraps in 60 fps (so many gigs of writes) mode, I get stutter. When I tried it on a better system it was fine.

Here's my own gameplay vid via fraps:
https://www.youtube.com/watch?v=jhibABT0-EE
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 31 guests