Strange stuttering


I’m developing a game using SDL, I’ve created my own level system with a
’camera’ that moves left and right depending on which direction you’re going,
the map objects then get drawn according to the position of the camera.

This works fine, but some objects seem to stutter all the time, there’s a
’line’ of objects that represent a tree in my game and you can best see it
there, when I move the player, a part of the tree seems to flash to the right
and then back into place a few seconds.

Any idea’s what this could be? I’ve been searching for quite a while, I also
have an FPS cap that caps my FPS, if I disable it, the stuttering still happens.

Thanks for any idea’s,