Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I wrote a little game of a bouncing ball, using SFML and Box2D.

When running on Windows, the graphics animate smoothly. The problem is on my Linux machine. The animation stutters randomly. To be precise, I get a horizontal video tearing effect.

I use the Intel graphics driver. I tried multiple solutions I found online to solve video tearing but I haven't been able to solve this. I've never had video tearing before, it appeared first with my SFML game.

share|improve this question

1 Answer 1

If you've got tearing, then you most likely forgot to enable vertical synchronisation (and it's not enabled by default or forced on your system).

Try calling sf::Window::setVerticalSyncEnabled(true); before your main loop.

share|improve this answer
    
Unfortunately this doesn't help. I've tried modifying my graphic card's driver too and nothing seemed to helped. I'm starting to think this can't be helped, but more importantly this is not really a game development issue anymore, but a Linux/SFML issue. I am leaving the question however because someone might be able to help. –  Ariel Jun 16 at 19:42
    
Have you tried any other OpenGL programs or games not related to SFML? Do they show similar issues? –  Mario Jun 16 at 21:41
    
Yes and I haven't experienced this –  Ariel Jun 17 at 8:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.