iPhone optimization

Get help using Construct 2

Post » Sat Jan 14, 2012 6:12 pm

well I don't want to zoom in on the objects on the screen. So I'll use a low dpi?

Also the Bullet behavior and the Every Ticket event didn't show any difference at performance ):
B
4
Posts: 16
Reputation: 482

Post » Sat Jan 14, 2012 6:25 pm

in preview or exported and tested on the phone?

Also keep your dpi at 72 its otherwise not matter what level of zoom it WILL be pixelated and pad.

Its easier just to use the bullet behavior. Just stick to that :) im sure the bullet behavior uses the evrytick event anyways.

B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sat Jan 14, 2012 6:26 pm

Try it with a thousand bullets. Or make it so it makes more and more of them until the fps dips. Make them invisible too, so the results aren't affected by the rendering speed. The behavior is probably faster, regardless.Arima2012-01-14 18:27:25
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sat Jan 14, 2012 6:38 pm

I tested with a thousands of objects. The bullet behavior seem to be slightly better, not noticable though at lower scales.

This doesn't really matter though as on the iPhone, the performance is way below the one on the pc in this test.
B
4
Posts: 16
Reputation: 482

Post » Sat Jan 14, 2012 7:48 pm

47 is a great framerate for a phone! Remember they have really weak hardware to stay low-power and not cost much, so you should not expect to see the same performance as a desktop. Generally 30fps should be your target for mobile devices. iOS can generally get that for straightforward games.

AppMobi won't get you any extra performance - see this post I made just now.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Jan 15, 2012 1:26 pm

Ah okay I see! Well, I'll keep working on my game, and hopefully there will be WebGl and other performance boosts for mobile devices soon! ^^
B
4
Posts: 16
Reputation: 482

Post » Sun Jan 15, 2012 1:34 pm

IPhone's allready have WebGL but only for IAd's <-- Which is stupid.

And Android are planning on implementing it for the next build i heard.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sun Jan 15, 2012 11:16 pm

I don't want to open another thread, but has anyone tried physics on the iphone? I made a couple of test and I get really really low fps for only a couple of objects, is this normal, has this improved on ios5 (I'm still on 4.3)?

Also, when you talk about dpi you are talking about sprites? Or is there a way to force a specific dpi in the layout?
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Sun Jan 15, 2012 11:40 pm

No you can't force a dpi. That can only changed in your image editor.

Nope have not tried physics yet. But if you upload a HTML file onto Dropbox and send me the link I'll check it on my iPhone. I'm running iOS5
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Mon Jan 16, 2012 6:44 pm

Physics & Bulltets are horrible on ios 4. When I changed to ios 5, it was clearly better (but don't go with more that 10 objects with bullets if you want at least 30 fps...
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: fredriksthlm, MPPlantOfficial and 19 guests