Scrolling 'shimmering'

Member
Posts: 117
Joined: 2010.09
Post: #1
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
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
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.
Quote this message in a reply
Member
Posts: 117
Joined: 2010.09
Post: #3
Hmmmm,

All my draw's are done with INT's anyway.....
Quote this message in a reply
Member
Posts: 27
Joined: 2009.07
Post: #4
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.

Goodbye.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
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)
Quote this message in a reply
Post Reply