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

Author Topic: SFML2 Flickering  (Read 1313 times)

0 Members and 1 Guest are viewing this topic.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
SFML2 Flickering
« on: August 21, 2011, 08:51:16 pm »
Hello guys,

Is there any known issue about window flickering with sfml 2?

Im doing the rendering the usual way, but i get a empty frame and then a normal frame, and so on. So, as frame yes, frame no, the screen is just black, i wonder what is happening!

Seems like a issue with double buffering, where one of the buffers is locked for writing..

I did a system("pause") before Window->Display() to be sure this is exactly whats is happening.

I have some other code in the middle of the rendering, that uses raw OpenGL, and i use Restore/Save States for that, but there seems to be something about this code that makes everything work normal, maybe some gl state.. More specificly, i use libRocket, and if there is a context to draw in the renderer, everything works normal, otherwise, the problem occurs.

Thanks for the help

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SFML2 Flickering
« Reply #1 on: August 21, 2011, 09:16:26 pm »
Quote
Is there any known issue about window flickering with sfml 2?

Nop. A minimal code would help to identify the problem ;)
Laurent Gomila - SFML developer