Major ipad performance problem using landscape

Discussion and feedback on Construct 2

Post » Sat Sep 15, 2012 11:39 pm

I made a basic performance test for the new ipad - I was pleasantly surprised by getting 60 fps with about 250 instances in retina mode with safari.

Until I tried it in landscape mode, which slams the framerate so hard I can't get ANY sprites on screen at 60fps.

http://www.amirai.net/ipad/sprites/

Give it a try - load it up on a new ipad and switch between portrait and landscape modes and watch the difference.

It happens in another game I'm making too. Any idea why this happens?

Here's the .capx if you want it: http://www.amirai.net/ipad/sprites/ipadfps.zipArima2012-09-15 23:45:29
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sat Sep 15, 2012 11:52 pm

Same here.
My guess is the extra real estate it has to keep track of.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Sat Sep 15, 2012 11:56 pm

What extra real estate? It's the same number of pixels, so that shouldn't make a difference.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sun Sep 16, 2012 12:13 am

Ok, I guess thats right, but the initial coordinates might add width to height.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Sun Sep 16, 2012 12:55 am

Another example - the space blaster performance test does the same: http://www.scirra.com/labs/sbperf/

In addition, the text object that displays the stats appears to be not redrawing itself correctly in landscape mode either.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sun Sep 16, 2012 7:53 pm

I ran into the same problem when I tested my game in Safari on the new iPad as well. Buttery smooth in portrait mode, but since my resolution isn't made for that it has awkward ghosting and a ton of black space. Turn it landscape and the FPS falls so dramatically it is fairly unplayable. I have not been able to test this on any other idevices yet.
B
17
S
2
G
3
Posts: 28
Reputation: 3,034

Post » Wed Sep 19, 2012 8:17 am

Want to make sure this thread wasn't missed. @Ashley - any ideas?
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Wed Sep 19, 2012 9:08 am

Wow, this is really strange. I can't see why this is happening. Maybe the iPad defaults with Portrait and it takes a lot of processing power to transform it into landscape. Although I can't see why that would happen. Maybe this problem will be fixed in iOS 6?

B
29
S
4
Posts: 42
Reputation: 2,391

Post » Fri Sep 21, 2012 5:14 pm

I'm curious to see if this works better on landscape in iOS 6. I'm going to see if I can borrow my boss's new iPad again and give it a test. I tried my game as a web app on a friend's iPod Touch and noticed the same deal though. Great performance in portrait, but poor performance in landscape. Quite strange.Crazyhowie2012-09-21 17:15:46
B
17
S
2
G
3
Posts: 28
Reputation: 3,034

Post » Fri Sep 21, 2012 6:37 pm

The problem is that it starts out with a set of coordinates, then you ask it to transform those to another set 2048, 1536, then to 1536, 2048.
There's a couple of different ways to do the transform, but think about it, the Ipad wasn't made for that kind of activity.

Anyway ios6 portrait looks to be in the 50-60's, and landscape...
acts strange, goes from 10 fps to 60 fps with little activity.
Its almost as if there was some throttle mechanism.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Next

Return to Construct 2 General

Who is online

Users browsing this forum: BBaller1337, Lancifer and 14 guests