Hello,
I'm using SFML 1.6 and this is the weirdest issue I can't figure out. In my project I'm drawing two tile maps currently, a large one that works fine and this new small one that has this weird flickering issue.
I load a large image then use Image.Copy to create the tiles from a large sheet. No matter what I've changed I can't seem to figure out what the hell is going on here.
Do you have any idea what would cause this? I've been working on this project for years and have never seen this before until I just added this map, which is a carbon copy of the current map from how its created to how its drawn.
Which tiles flicker is completely random, if I walk around the same tile that was flickering no longer is, but a different one does. I can't predict where or which ones have the issue. I am using std::map<std::string, sf::Image> images; to store the images, there is currently probably over a hundred images already stored inside which don't have this issue. The images that are drawing were created with Image.Copy and not loaded using SFMLs loading functions.
EDIT: Could this be caused by too many draw calls? I commented out some other functions that produce draw calls and the problem stops almost entirely, with one or two flickers very very rarely. I'll continue to see what I can do but I feel like it may be the result of too many draw calls or slow iteration.