Hi. I am working on an app and am getting 60 fps in the simulator but the framerate on the two devices I have tested on drops to 5 fps. I have tested on an HTC Sensation and a Toshiba Thrive tablet.
The app has a series of images that the user can swipe left and right on the screen to scroll through (like a video). The user can also tap on the screen and the images will play through like a video would play. However, when the image changes, the fps drops to 5. Is there something in my code that I am overlooking or is there a better way to make this app?
if (picNum \<= #imgTest) and (picNum \>= 0 ) then if (math.round((event.x - event.xStart)/pixelsPerImage)) \>= 0 and (picNum \< #imgTest) then picNum = (math.round((event.x - event.xStart)/pixelsPerImage) + dontreset) display.remove( testPic ) testPic = display.newImage("images/vid1/" .. imgTest[picNum] .. ".jpg") testPic.x = display.contentCenterX testPic.y = display.contentCenterY group:insert(testPic) end end