Poor performance on mobile with a simple proto?

Discussion and feedback on Construct 2

Post » Sat Jul 13, 2013 1:13 pm

Hello all,

I'm making a simple platform game on mobile devices, and I realized the framerate is very low (20 fps on iphone 4), even if the game is simplistic. I'm simply wondering if this is normal.

I know performance on mobile is nightmarish, and I experienced that before on other games. But is it not weird that a mid-range mobile can't handle a simple prototype? I don't even use big sprites. Is it because of the tiled backgrounds?

Here's my proto test: https://dl.dropboxusercontent.com/u/27924504/test/test/index.html

I tested it with an iphone 4.
B
22
S
6
G
3
Posts: 59
Reputation: 4,288

Post » Sat Jul 13, 2013 1:43 pm

Depends how you coded it, size of images, ... without capx, it's hard to say.
Be sure to check this tutorial on the subject : performance tips for mobile games
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Sat Jul 13, 2013 2:12 pm

You might try removing the semi-transparent button.. I remember alpha rendering drags down performance, and on one game I had several semi-transparent stuff going around (fade in, fade out). I removed it all and it got better FPS.
B
22
S
5
G
5
Posts: 58
Reputation: 5,257

Post » Sat Jul 13, 2013 2:31 pm

@Guizmus I checked this very good article many times since months. Except text object, I don't use anything of those performance killers the article advises to remove.

@Soybean I removed the button and nothing changes :/

Here's the capx, if someone want to check: https://dl.dropboxusercontent.com/u/27924504/test/test.capx

Thank you!Lowren2013-07-13 14:45:27
B
22
S
6
G
3
Posts: 59
Reputation: 4,288

Post » Sat Jul 13, 2013 3:21 pm

When I remove most of the stairway platform, it goes from 20 fps to 50 fps. So I guess the problem is the tiled background... It's weird, I believed I can put more than two tiled backgrounds / sprites on screen, even on mobile devices :/
B
22
S
6
G
3
Posts: 59
Reputation: 4,288

Post » Sat Jul 13, 2013 3:40 pm

@Lowren,

I've also noticed tiled backgrounds having a negative effect on my fps in the past.

I found this most confusing, as I though the tiled bg object was supposed to be more efficient, and less CPU intensive.

Hopefully someone will be able to offer some insight (@Ashley perhaps you could advise). As this is something I'd like to understand better as well!
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Sat Jul 13, 2013 3:46 pm

Yeah I reduced the platform stairs and also removed the sine behavior on bananas. I got FPS 10 - 20 while moving and 20 on when not moving, but this is with letterbox scale. I tried reloading your project and use letterbox integer scale and it can go 20+ FPS.
B
22
S
5
G
5
Posts: 58
Reputation: 5,257

Post » Sat Jul 13, 2013 3:58 pm

This reminds me of jayderyu's post.

It _might_ have something to do with the scaling option. I think.
B
22
S
5
G
5
Posts: 58
Reputation: 5,257

Post » Sat Jul 13, 2013 4:06 pm

You're right Soybean, scaling option change everything. It was something I didn't know. I can earn 30+ fps (20 to 50) when I change Scale outer to scale inner...

Thank you for your help, I see more clearly now :)
B
22
S
6
G
3
Posts: 59
Reputation: 4,288

Post » Sat Jul 13, 2013 6:21 pm

[QUOTE=Guizmus] Depends how you coded it, size of images[/QUOTE]
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests