Hello eveybody,
I have a low frame rate problem when I run my app on HD Android devices with resolutions equal or higher than 1280x720. In my game the background has several layers which are constantly moving with enterFrame events. It work perfect on iOS devices and Android devices with a resolution of 800x480. The background has around 6 different enterframes working at the same time.
In HD Android devices I get a frame rate around 17, while in Android SD devices and iOS I get around 30 fps.
The background images has this resolution ( 570 x 360 ) for low resolution devices, and (1140*720 ) HD devices. This is my config.lua:
application = { content = { width = 320, height = 480, scale = "letterBox", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 2.0 } } }
This is the enterFrame event I use to move the images:
local enterFrame = function (self, event) local tDelta = event.time - self.tPrevious tDelta = tDelta \* self.speed self.tPrevious = event.time local xOffset = ( 0.1 \* tDelta ) ground1.x = ground1.x - xOffset if ground1.x \< - sizeImage - correctionX then ground1:translate( self.size , 0) end ground2.x = ground2.x - xOffset if ground2.x \< - sizeImage - correctionX then ground2:translate( self.size , 0) end end
All images of the backGround are in a Texture created with Texture Packer.
Does anybody know how to get higher frame rate on HD android devices?. Is a Corona limitation?. When I increase background speed movement, the game works even worse.
Regards
