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

Author Topic: Tearing in clear textures.  (Read 3017 times)

0 Members and 1 Guest are viewing this topic.

nihohit

  • Newbie
  • *
  • Posts: 37
    • View Profile
Tearing in clear textures.
« on: May 17, 2012, 10:41:42 pm »
When I run an animation that involves a partly clear (invisible) texture on a slow computer, there's "static" tearing which disrupts the view. This happens regardless of Vsync or whether there's a framerate limit set. Is there a known cause for this?

Example video:

« Last Edit: May 17, 2012, 10:44:57 pm by nihohit »

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
Re: Tearing in clear textures.
« Reply #1 on: May 18, 2012, 03:00:35 am »
Are you drawing a part of the same texture on it?

nihohit

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Tearing in clear textures.
« Reply #2 on: May 18, 2012, 08:25:18 am »
No, In the animation I keep removing the first frame and then draw the next one.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Tearing in clear textures.
« Reply #3 on: May 18, 2012, 08:36:51 am »
It's hard to help you without seeing your code.

Would you be able to write a complete and minimal code that reproduces this problem?
Laurent Gomila - SFML developer

nihohit

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Tearing in clear textures.
« Reply #4 on: May 18, 2012, 11:53:56 am »
I'll try, the next time I'd be near that computer, but it's not a code problem - on my home desktop there's no tearing.