[FIXED] Frame rate issue in 2.0? FPS drops by half in 1 minute of play.

Hi Guys,

I started developing out new game in 1.0, but a few days ago I migrated to 2.0.

As soon as I switched over, I noticed that the average frame rate dropped from ~60 to <20 after a minute or two of play. The frame rate stays steady for the first couple of minutes, then starts to drop.

I’ve checked the memory using;

collectgarbage( "count" )

The memory does not increase, so I don’t believe there’s a memory leak.

Also, if I pause the physics engine, the frame rate returns to ~60fps. As soon as I unpause it,  the frame rate drops again. I’m not creating any physics objects at runtime. They are all created once at the start.

I’m unable to check texture memory as we can’t access that at the moment in 2.0, right?

Is anyone experiencing similar issue? Is this a known bug?

The same thing happens when our game “Draw Rider” compiling in corona sdk 2.0. On the iPad 2 game works less than on corona sdk 1.0, but I think this will be fixed later, this is only the beta.

Ok, cool. I just don’t want to spend ages looking for a memory leak if it’s just down to the beta at this point :slight_smile:

@roballison182, would you mind sending us your project via the bug form (http://developer.coronalabs.com/content/bug-submission) and send me the case number? If we can reproduce your issue, we’ll be able to resolve it more quickly.

You guys aren’t alone in this, but do send your projects to Walter - the more information he has the better chance we have of it being fixed as soon as possible (as it is something plaguing Dungeoneer - you leave it running and eventually it just crashes from memory issues).

Hey, my project is not stable at the moment as I’ve been experimenting a lot recently. I will get it into a stable state where you can just set it going and watch the frame rate and get it sent to you asap.

Thanks.

Hi All,

I believe there is a memory leak when you set the text of a newText object. If I set the project to 60fps, the frame rate drops very quickly and then I end up with memory warnings and the app will crash.

Please try this project to replicate:

https://github.com/justTheDrummer/CoronaMemLeak

Thanks for the help guys

Hi again guys,

Just to let you know that I’ve removed all text objects from my project and it now runs at a steady ~60fps and no longer crashes after ~1 minute. Seems pretty conclusive :slight_smile:

We found the bug and pushed a change, it will be available in the next daily build (should be available in build 2041)

This is one of the many reasons I love corona. Thanks!

The same thing happens when our game “Draw Rider” compiling in corona sdk 2.0. On the iPad 2 game works less than on corona sdk 1.0, but I think this will be fixed later, this is only the beta.

Ok, cool. I just don’t want to spend ages looking for a memory leak if it’s just down to the beta at this point :slight_smile:

@roballison182, would you mind sending us your project via the bug form (http://developer.coronalabs.com/content/bug-submission) and send me the case number? If we can reproduce your issue, we’ll be able to resolve it more quickly.

You guys aren’t alone in this, but do send your projects to Walter - the more information he has the better chance we have of it being fixed as soon as possible (as it is something plaguing Dungeoneer - you leave it running and eventually it just crashes from memory issues).

Hey, my project is not stable at the moment as I’ve been experimenting a lot recently. I will get it into a stable state where you can just set it going and watch the frame rate and get it sent to you asap.

Thanks.

Hi All,

I believe there is a memory leak when you set the text of a newText object. If I set the project to 60fps, the frame rate drops very quickly and then I end up with memory warnings and the app will crash.

Please try this project to replicate:

https://github.com/justTheDrummer/CoronaMemLeak

Thanks for the help guys

Hi again guys,

Just to let you know that I’ve removed all text objects from my project and it now runs at a steady ~60fps and no longer crashes after ~1 minute. Seems pretty conclusive :slight_smile:

We found the bug and pushed a change, it will be available in the next daily build (should be available in build 2041)

This is one of the many reasons I love corona. Thanks!