First of all I would like to say hello to everyone as this is my first post.
I am newbie in Corona and I am just staring my first projects.
I have been reading this forum for some time now and I have to say that Corona community is amazing 
and I hope that you can explain me this issue.
I have noticed that side scrolling apps in Corona Simulator and in Xcode IOS Simulator do not scroll smoothly when fps = 60 in config.lua; It looks like the scrolling stops for a short while 1 - 2 times a second.
I used FPS widget from http://developer.anscamobile.com/code/output-fps-and-texture-memory-usage-your-app
I changed local maxSavedFps = 30; to local maxSavedFps = 60;
and it I noticed that min. FPS goes down from about 59 to 30 and then goes back to 58-59.
I tested it on:
- Corona Simulator
- XCode IOS Simulator
Tested it with Corona Sample Code - Horse Animation (you can see that scrolling stops when you look at the trees in foreground) and also with my small scrolling app (see code below)
I am not sure how it works on any device but I assume that the scrolling should be smooth in simulator?
Any advice?
Many thanks in advance.
ā Simple Side Scroller ā
save any nice picture that you can use as bg01.png (dimensions 480 x 320) and do not forget to change maxSavedFps to 60 in fps.lua
[code]
display.setStatusBar(display.HiddenStatusBar)
local fps = require(āfpsā)
local background1 = display.newImage(ābg01.pngā);
background1:setReferencePoint(display.TopLeftReferencePoint)
background1.x = 0
background1.y = 0
local background2 = display.newImage(ābg01.pngā)
background2:setReferencePoint(display.TopLeftReferencePoint)
background2.x = 480
background2.y = 0
local performance = fps.PerformanceOutput.new();
performance.group.x, performance.group.y = display.contentWidth/2, 0;
performance.group.alpha = 0.6; ā So it doesnāt get in the way of the rest of the scene
ā A per-frame event to move the elements
local tPrevious = system.getTimer()
local function moveBackground(event)
local tDelta = event.time - tPrevious
tPrevious = event.time
local xOffset = ( 0.4 * tDelta )
background1.x = background1.x - xOffset
background2.x = background2.x - xOffset
if (background1.x + background1.contentWidth) < 0 then
background1:translate( 480 * 2, 0)
end
if (background2.x + background2.contentWidth) < 0 then
background2:translate( 480 * 2, 0)
end
end
Runtime:addEventListener(āenterFrameā,moveBackground)
[/code] [import]uid: 51816 topic_id: 20891 reply_id: 320891[/import]
[import]uid: 52491 topic_id: 20891 reply_id: 82424[/import]