Hello. This is my first post on the Corona forums, and it’s regarding my first app, so I figured that this was the appropriate section. In a few weeks, I used the excellent Corona documentation and resources available on Youtube to build my first ever mobile application. I’m rather pleased with the results, regardless of how simple the app is.
My worries involve a slight and occasional FPS dip that I have been noticing. It is not game-breaking, and I have only had a few people tell me that they’ve noticed it, but it is driving me nuts.
Essentially, the app involves a piggy bank swinging around on a rope, about the center of the screen, collecting coins. Which type of coin he can collect is dependent on whether or not the screen is being touched. Everything seems to be working fine, except that the rotation sometimes has a few FPS hitches, or stutters a bit.
I’m using a Runtime event listener “enterFrame” that calls my rotation() function. In this function, I increase the rotation of my piggy bank by a certain amount. This certain amount is increased every time the user collects a coin, in order to increase the rotation speed the longer you last without messing up. Is this a bad way to go about making the piggy bank object swing around the screen?
I have the FPS set to 60 in the config.lua file, though I experienced these troubles prior to that change as well. I can not say for sure if the stuttering is due to the rotation. I’m just not familiar enough with Corona to say, really. I have experienced these fps problems on the simulator and a few android devices.
I was not keen to post a link to my app for fear of advertising or something, but it is available here if you want to try and experience the issue: https://play.google.com/store/apps/details?id=com.gmail.scbdeveloper.Swing_Swine
I’ve not posted any code as of yet but if you would wish to see some I would be happy to. My theory is that trying to rotate every frame is taxing on the system or simply inconsistent.
