Jump to content
If you use a single build of Corona, such as 3326 and it works well one day and another, it either has to be something in your code or something going on with the device slowing it down. Corona builds don't change from day-to-day. With the exception of some plugins that may have updated on you, 3326 is the exact same code both locally and on the build servers as the day it was released. We do a little stats tracking, but that happens at the beginning of the app run, so during the life of the running app, we are not generating any additional network traffic.
So you need to look at things that could have changed:
Updated plugins. What plugins are you using?
Network traffic. Are you recording analytic data?
Memory leaks from other apps. Perhaps your device has less available memory today that it did before and the lower memory profile or something is running in the background taking away CPU cycles from your Corona app.
Source code changed. Perhaps you've made a change that has created a memory leak or causing extra processing that wouldn't show up in the simulator.
Please keep in mind that when you run in the Simulator, you're typically on a computer with a high-speed CPU with a powerful GPU, and 4GB or more RAM and tons of swap space. Most mobile devices are under 2GB of RAM, have CPU's and GPU's that are designed to be run on tiny batteries. They are a completely different class of horsepower. It may take longer for performance problems and memory leaks to show up on desktop and laptops.
What types of physics bodies are you using and how are they defined? Did you use Physics Editor or something like it to define the physics bodies' shapes?
Are your slow downs happening on iPhones or Androids and which models?
I lean on the physics engine heavily and have experienced something similar but only on Android devices. My theory was that most Android devices skimp on something - RAM, memory, CPU, GPU - to reduce costs and can't hang with heavy physics use. I might have some tricks to help you once we know a little more about the project.
Can you upload some screen shots and drawmode set to "hybrid"?
Community Forum Software by IP.Board