Scrolling 'shimmering'
Hi all,
I've got my tiled 2d game going on the iphone (3g) and notice although it runs easily at 60fps the scrolling 'shimmers'.
My coordinates are spot on but the colours seem to 'wobble'
I assume this isn't a display lag issue as I have seen many other games scroll nice and silky.
Presumably there are some opengl things I need to check which effect the render quality maybe????
Any help appreciated
Cheers
I've got my tiled 2d game going on the iphone (3g) and notice although it runs easily at 60fps the scrolling 'shimmers'.
My coordinates are spot on but the colours seem to 'wobble'
I assume this isn't a display lag issue as I have seen many other games scroll nice and silky.
Presumably there are some opengl things I need to check which effect the render quality maybe????
Any help appreciated
Cheers
It's because of how texture filtering works at subpixel accuracy. Round all of your drawing values (camera and everything) to integers when drawing to get rid of the problem.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Hmmmm,
All my draw's are done with INT's anyway.....
All my draw's are done with INT's anyway.....
Are you sure it's running at 60fps? Because if it's running faster, you may be running into an issue with tearing, wherein your rendering calls are out of sync with the device display.
You may want to look into capping the rendering FPS to 60, to see if that helps any.
You may want to look into capping the rendering FPS to 60, to see if that helps any.
Goodbye.
iOS is always vsync'd, so you can't go faster than the refresh rate.
You should never cap FPS to some arbitrary, only enable vsync (though you could consider deliberately drawing only every other sync, if you can't meet the full rate)
You should never cap FPS to some arbitrary, only enable vsync (though you could consider deliberately drawing only every other sync, if you can't meet the full rate)

