Hello gents and… gents.
I recently started to experience white lines / tearing in my game and I dont quite no how to get rid of it.
That’s how it looks like:
http://img217.imageshack.us/img217/9816/notearing.png
http://img577.imageshack.us/img577/8836/tearing.png
The grass consists of little tiles and I already figured out that the camera (libGdx) isn’t happy with the float values. The FPS are capped to 100.
That’s how I move the camera:
cam.position.set((player.x + (player.width/2)), (player.y + (player.height/2)), 0);
cam.update();
If I cast the x and y values to integer the tearing is gone, but the camera gets a little wobbly.
So right now it’s either a smooth camera and tearing, or no tearing and a wobbly camera. A little nudge in the right direction would be great