Is Android locked to 30 fps ?

When i run my app on Android, it runs at a rock solid 30fps

on iOS its running solid on 60fps

In the simulator its down to 30fps again.

Can anyone confirm my findings, or is it just a coincidence that i run at 30fps no matter what, with the expected performance on those platforms ?

config.lua is setup to 60fps

display.fps reports 60fps

[lua]

local aspectRatio = display.pixelHeight / display.pixelWidth

application = {

   content = {

      width = aspectRatio > 1.5 and 800 or math.ceil( 1200 / aspectRatio ),

      height = aspectRatio < 1.5 and 1200 or math.ceil( 800 * aspectRatio ),

      scale = “letterBox”,

      fps = 60,

   },

}

[/lua]

did you ever discover anything?

i don’t think it’s literally “locked”, but I do think there’s “something” on some devices that causes a SIGNIFICANT performance hit, causing framerate to drop (to next integral, that being 30)

i have an app set for 60fps, and it runs just fine at 60fps on an original Nexus 7 2012 (4.4.4)

but,… on a Nexus 7 2013 (also 4.4.4) it only runs at 30fps - twice the hardware, half the performance, doesn’t make sense.

i’m about to dig into it to try to discover the culprit, but i’m currently just guessing there must be some internal code querying the hardware for support, and when it finds it (probably some OpenGL ES feature in newer hardware) then uses some “alternate” code that just isn’t as snappy as whatever would have been used instead on the older hardware.

thought i’d ask before starting if you had found anything.

yes i had the issue with same hardware as you, the nexus 7 2013

what eventually solved it, was a hard restart of the device. Why it resolved it or i had the issue in the first place i dont know

try it, its an easy fix if it works for you too :slight_smile:

did you ever discover anything?

i don’t think it’s literally “locked”, but I do think there’s “something” on some devices that causes a SIGNIFICANT performance hit, causing framerate to drop (to next integral, that being 30)

i have an app set for 60fps, and it runs just fine at 60fps on an original Nexus 7 2012 (4.4.4)

but,… on a Nexus 7 2013 (also 4.4.4) it only runs at 30fps - twice the hardware, half the performance, doesn’t make sense.

i’m about to dig into it to try to discover the culprit, but i’m currently just guessing there must be some internal code querying the hardware for support, and when it finds it (probably some OpenGL ES feature in newer hardware) then uses some “alternate” code that just isn’t as snappy as whatever would have been used instead on the older hardware.

thought i’d ask before starting if you had found anything.

yes i had the issue with same hardware as you, the nexus 7 2013

what eventually solved it, was a hard restart of the device. Why it resolved it or i had the issue in the first place i dont know

try it, its an easy fix if it works for you too :slight_smile: