I’ve looked around for a while for a solution to this problem, and to no avail. The problem is that I am drawing tiles of 64.0f by 64.0f, with tile sheets of 128.0f by 128.0f. The size of the tile is divided by the size of the tilesheet to get a texture coordinate (based on the tile it needs to draw).
I have checked these values, and they are 0.0f, 0.5f and 1.0f which are correct coordinates for the texture drawing. When stationary, the tiles draw fine. When the camera is moving however, I run into a problem and the textures flicker every now and again. It happens very fast but I was able to get a screenshot of one of the flickers occuring.
I have drawn fat red arrows pointing to the problem. What confuses me is that this problem only occurs on a single row of tiles at a time when it happens, and it only happens while the camera is moving.
I have read places that setting the projection right and bottom 0.5f less, which is used in the screenshot, and obviously doesn’t solve the problem.
Does anyone know what is happening here? I would post some code but I honestly don’t know where the problem is occuring, so request anything needed.