Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Visual glitches and flickering when drawing sprites  (Read 1652 times)

0 Members and 1 Guest are viewing this topic.

miki151

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Visual glitches and flickering when drawing sprites
« 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




Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Visual glitches and flickering when drawing sprites
« Reply #1 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, 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?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

miki151

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: Visual glitches and flickering when drawing sprites
« Reply #2 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 :)

« Last Edit: April 13, 2015, 03:19:24 pm by miki151 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Visual glitches and flickering when drawing sprites
« Reply #3 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/