stuttering in platform/runner corona games

Hi,

I have developed a new game which is basically a side runner. I’ve noticed during development that there is a stutter to the moving ground which I could not explain by any test I made. I went all the way to remove all game parts except the ground and a few calculations and I still see this problem. I also used profiler and other checks to no avail. It doesn’t happen all the time, but it is apprent, especially on android devices. less so on ipad.

one thing I did note is that modifying the physics engine timeStep value from the reccomended 0 (for time based physics) to 1/fps helps to reduce the problem somewhat. however, on some android devices, setting it to this value cuases momentary game freezes for some reason.

I’ve also looked at several other platform games made with corona and noticed this problem there as well.
Has anybody encountered and solved this problem? I’m at a loss as to where to look further for some clues.

Thanks [import]uid: 118978 topic_id: 30374 reply_id: 330374[/import]

Try doing:

collectgarbage(“collect”)

every second or so on a timer. I had a stutter in a few of my animated scenes (only on Android and only some platforms for me) and this cured it. [import]uid: 160496 topic_id: 30374 reply_id: 121706[/import]

Hi Thanks. I’ve tried it but I still see some jerky movements. I think it has to do with the physics engine or underlying draw functions. [import]uid: 118978 topic_id: 30374 reply_id: 121815[/import]

Try doing:

collectgarbage(“collect”)

every second or so on a timer. I had a stutter in a few of my animated scenes (only on Android and only some platforms for me) and this cured it. [import]uid: 160496 topic_id: 30374 reply_id: 121706[/import]

Hi Thanks. I’ve tried it but I still see some jerky movements. I think it has to do with the physics engine or underlying draw functions. [import]uid: 118978 topic_id: 30374 reply_id: 121815[/import]