SFML community forums

Help => Graphics => Topic started by: Grimshaw on August 21, 2011, 08:51:16 pm

Title: SFML2 Flickering
Post by: Grimshaw 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
Title: SFML2 Flickering
Post by: Laurent 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 ;)