The problem of the continuos scrolling parallax comes from the fact that you constantly move physical objects.
This means that those physical objects will never go to sleep (sleep is a state of box2d objects) and so physical calculation will always be performed. This will impact performance.
You can do scrolling background very nice by moving the group in Corona - which is kind of simulating a camera movement.
Thats ok, because you don’t actually move the physical object and as such, objects that don’t move go to sleep so physics is not calculated for them.
But continuos parallax scrolling means, group stays the same, but you actually move the physical objects. This means all objects (physical) will never go to sleep, so physical calculation will always be performed. This impacts performance.
I will do an update that will only move the physical objects that are on screen.
This will improve performance.
LevelHelper and SpriteHelper don’t do just continuos parallaxes, i hope you know that. This in fact is just a small part that LevelHelper can do.
I know about this jitter in the continuos parallax and Corona, i was about to fix it, but then Ansca change the sprite api, so i was forced to move my attention in another direction because code was not working anymore because of the changes done in Corona.
Time has passed and i have changed the implementation for LevelHelper in corona 3 times till now. Its almost ok, but still has some issue because of all the changes in Corona. Im waiting for some fixes for more then a month now. In some areas my hands are tied.
In the case of the parallax, this will be fixed very soon.
The implementation of the tutorial, i have tested it on iPhone 4s and iPhone 2G and in my case it was running good. 60fps on iPhone 4s and 20-25 on iPhone 2G. Now, this is not a benchmark because people have told me that in some cases for them it does not run the same.
I think jkrassman can confirm to you that i work on LH and LH supporting code for corona almost daily and every time he contacted me I had a fix for him in couple of hours.
For future, please post LevelHelper questions on the dedicated forum so that i can answer fast. I only came here because Joakim told me.
I promise you I will do my best to make continuos parallax scrolling much better. [import]uid: 38119 topic_id: 23644 reply_id: 104047[/import]