Space Patrol example and iPad Air

Official forum for the Chipmunk2D Physics Library.
Post Reply
rohirm
Posts: 3
Joined: Tue Oct 08, 2013 8:55 am
Contact:

Space Patrol example and iPad Air

Post by rohirm »

Hi,

This is not directly a Chipmunk question.. When I run the Space Patrol example with my iPad 3 it runs just fine, but when running on iPad Air the background parallax is very jumpy. It shakes around. I use the similar parallax in my game and I haven't figured out what causes it. Any ideas?

Thanks!
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Space Patrol example and iPad Air

Post by slembcke »

Probably a shader precision issue. I just picked up a retina mini a couple days ago and a bunch of my old shaders are broken. I'm guessing that something in the new GPU is computed with less precision than before.

Do you know about the ES frame capture feature of Xcode? It makes it pretty easy to troubleshoot shaders. You can edit them on the fly and poke around with the shader easily.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
rohirm
Posts: 3
Joined: Tue Oct 08, 2013 8:55 am
Contact:

Re: Space Patrol example and iPad Air

Post by rohirm »

Didn't know that. Thanks for the hint!

That was the problem. I had to change the precision of the parallax shader variables from mediump to highp. Now it runs smoothly.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests