I have a parallax background scrolling repeatedly but then it's not smooth and kind of jerks. It's also running at 60fps. What are possible causes?
Scrolling choppy
(6 posts) (3 voices)-
Posted 1 year ago #
-
Do you have other code? schedulers or anything that maybe printing nslogs to the console or otherwise causing slowdown for short bursts of time?
Posted 1 year ago # -
No, my console isn't running any continous messages. But, my scrolling background uses the action CCRepeatForever.
Posted 1 year ago # -
It actually may be running smoothly, but if other things on the screen are moving as well it may look choppy relative to their movements. You could test by creating a test scene where you only scroll the background and nothing else an see if it's smooth. This doesn't solve your issue but identifies whether it's the repeatforever or not.
Posted 1 year ago # -
It still has the problem even if I only test the background scroll. I've also tried using 1024x1024, 1024x512, 1024x320,480x320, 512x256 and they were all doing the same thing.
Posted 1 year ago # -
I just noticed that the parallax test demo that came with Cocos2d also have this problem. What's going on here.
Posted 1 year ago #
Reply
You must log in to post.