SFML community forums
Bindings - other languages => DotNet => Topic started by: Kwang1imsa on July 05, 2011, 04:02:27 am
-
I have been wondering, what exactly does useverticalsync do?
Does it simply effect the frequency of SFML's Display() function or does it insert a sleep() do delay the entire while loop that contains the draw function?
-
It adds delays so that it won't draw faster than your screen can display. Without vertical sync you'll sometimes see tearing with multiple frames visible at once.
-
No, I know what VerticalSync is.
I mean, does it sleep the thread for any extra time between one draw time or another in the application's main while loop or what?
-
It sleeps inside Display() until the monitor is ready to display a new frame.