Hello Forums!
I am relatively new to the Corona SDK, but finished up on my first game and I am running into an issue with framerate drops. At first I thought it was my code, so I spent several weekends cleaning it up and re-writing it with to no avail. I added the following code to my project to get a printout of the frame rate:
local runtime = 0
local function getDeltaTime()
local temp = system.getTimer() --Get current game time in ms
local dt = (temp-runtime) / (1000/60) --60fps or 30fps as base
runtime = temp --Store game time
return dt
end
When I added the print out I was getting a drop to .40 or .36 about every 10 lines the rest of the time it was staying between .90 and 1.10. I think this is causing jittery transitions in my objects, but it is really bad on the S4 in comparison to the S3 or S5. I got a bit frustrated and decided to make a new project (Physics Based Game) and add this code to get a base line, and I was surprised when I got the same issue.
I am using a Windows 7 64bit machine, and updated to the latest Corona daily build. Is this an issue with Corona? Could it be a Bug of some sort?
Any insight would be appreciated!