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

Author Topic: Flickering sprite on high resolutions  (Read 1495 times)

0 Members and 1 Guest are viewing this topic.

Lunoo3204

  • Newbie
  • *
  • Posts: 2
    • View Profile
Flickering sprite on high resolutions
« on: February 20, 2024, 07:41:58 pm »
Hello. I am making a game that is originally 640x480, but you can turn on the fullscreen.

The fullscreen isn't a regular fullscreen built in the system. It simply closes the window and then creates a new one, without a bar, streching 640x480 so it fits the desktop resolution (viewport). It looks fancy.

The problem is that when I move my character on the y axis (therefore causing the view to move, following my character), all that is a texture that regularly (without fullscreen) seems to be fitting perfectly begins to flicker. Look at the attatchment, it's difficult to describe without getting into the details.

Note that this does not happen when the application is run in original resolution

How can I fix this? All the sprites' positions are integers. I'd be glad for any help!!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Flickering sprite on high resolutions
« Reply #1 on: February 21, 2024, 08:34:11 am »
I don't really see a flicker, or do you mean that the character vanishes?

Is the whole thing intentionally very faded/barely visible?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Lunoo3204

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Flickering sprite on high resolutions
« Reply #2 on: February 23, 2024, 07:20:48 pm »
Yes it is. It's a kind of foggy effect.

And by flickering I mean this... that little line that appears, as if the texture didn't stick with the black texture, revealing what is under the texture. Look at the attatchment. The second one is how it SHOULD look like. But this flickering effect happens only when I move (as shown previously in the video).

 

anything