SFML community forums

Help => Graphics => Topic started by: miki151 on April 13, 2015, 02:54:54 pm

Title: Visual glitches and flickering when drawing sprites
Post by: miki151 on April 13, 2015, 02:54:54 pm
A player has sent me screenshots of a visual glitch in my game. The first screenshot is what the game normally looks like. The glitches reportedly flicker very quickly.

The bug is pretty rare, probably no more than 1 in 200 players experience it. It seems to be related to having a dual video card setup. I asked the player to manually switch to his GTX 980 card, we'll see if that helps. Meanwhile, if anyone has any clue on how to resolve this, I would gladly hear it.

Michal

(http://blkrs.com/~michal/Screenshot%20(1).png)
(http://blkrs.com/~michal/Screenshot%20(2).png)
(http://blkrs.com/~michal/Screenshot%20(3).png)
Title: Re: Visual glitches and flickering when drawing sprites
Post by: Nexus on April 13, 2015, 03:04:30 pm
Has this problem occurred in other applications as well? I assume it's difficult to come up with a minimal example (http://en.sfml-dev.org/forums/index.php?topic=5559.msg36368#msg36368), as you can't really reproduce it. Have you found out in what situations it can occur?

Is the video driver up-to-date? Are there any error messages in SFML? Latest SFML master branch from GitHub?
Title: Re: Visual glitches and flickering when drawing sprites
Post by: miki151 on April 13, 2015, 03:14:40 pm
One other player had a similar glitch, and he said that also Minecraft wasn't working well for him, until he updated his drivers, at which point Minecraft was working ok, and the glitch in my game went from the map area into the menus. Btw, you can see in the screenshots that here the glitch only appears in the map area, which uses same sized sprites from about 5-6 different textures. The same sprites are also used in the menus on the right, but there they aren't glitching.

Similar glitches have been reported in a version of the game with unicode graphics, screenshot below.

The player says he updated his video drivers. I asked him about any error messages.

I use SFML 2.2. I'm not sure about using the master branch for production.

Thanks for your help :)

(http://blkrs.com/~michal/unnamed.png)
Title: AW: Visual glitches and flickering when drawing sprites
Post by: eXpl0it3r on April 13, 2015, 05:18:04 pm
I think, I've seen similar glitches with Intel graphics chips.

What graphics card is your user using?