Hello, I'm creating a game with Allegro 5, Visual Studio 8 and Windows XP.
Well, when I run the game, the tiles that are on the screen suffer a deformation, this effect occurs around the display of the Allegro, and only when I move the tiles, when they stopped the deformation disappears.
The effect starts low, rises and deforming the tiles, it happens every 4 seconds or so. Tried to replace the images by the most primitive effect is the same.
A photo of the problem:
A video of the "bug":
Below the drawing code of tiles:
In tile class has a std :: vector<tile> contains that all existing tiles on the map, and the method draw () the map I draw them like this:
2//all_tiles is std::vector<tile> static that contains all of the map tiles
i = 0 ;
i < (int)
Do not bother to swap the buffers because the documentation says that the Allegro automatically identifies what the current backbuffer. I think be no problem with my computer 'cause I have done some games in Java (which is much slower than c ++) and ran perfectly. Does the problem is because Windows XP? Or am I doing something wrong?