Animations lagging on mobile vs pc?

Discussion and feedback on Construct 2

Post » Sun Apr 13, 2014 6:30 pm

I have a 32x32 29 frame animation set up on a player for the jump platform action, animation is set to 120FPS. Testing the animation on Chrome for PC everything runs smooth at 60FPS, when testing on Chrome for android the animation slows down a lot and does not complete before the player lands back on the platform like when I test on Chrome for PC. Construct says the game only uses 39mb memory, so I don't think it would be stressing the phone I'm testing on that hard(Galaxy S4). What could be making the animation lag behind on the mobile browser? Should I be making less frames in the animation when targeting mobile browsers? Is it the 120FPS setting?
B
46
S
16
G
2
Posts: 107
Reputation: 4,278

Post » Sun Apr 13, 2014 8:42 pm

running an animation at 120 fps while the computer and mobile is running at 60 fps top speed is not useful at the end, since half of them only will be seen (also not sure how C2 handles the fact that the animation is quicker than the actual framerate).

a 29 frames animation seems really a lot here (since at 120 FPS, it should run the 29 frames in 0.24 seconds), try to see if dividing the number of frames by 2 and the speed of the animation by 2 helps in that case.
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 » Mon Apr 14, 2014 1:20 am

B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Mon Apr 14, 2014 12:13 pm

@Aphrodite I tried setting the animation to 15 frames then set the fps to 30 and the animation still is so slow on mobile Chrome.

@TGeorgeMihai Not sure what you mean here, Delta time is already on the platform behavior isn't it?
B
46
S
16
G
2
Posts: 107
Reputation: 4,278

Post » Mon Apr 14, 2014 5:19 pm

Can you post the .capx file ?
B
49
S
15
G
6
Posts: 534
Reputation: 7,195


Return to Construct 2 General

Who is online

Users browsing this forum: BadMario, jobel and 2 guests