Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
DotNet
»
UseVerticalSync
Print
Pages: [
1
]
Author
Topic: UseVerticalSync (Read 3686 times)
0 Members and 1 Guest are viewing this topic.
Kwang1imsa
Newbie
Posts: 26
UseVerticalSync
«
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?
Logged
JAssange
Full Member
Posts: 104
UseVerticalSync
«
Reply #1 on:
July 05, 2011, 04:24:53 am »
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.
Logged
Kwang1imsa
Newbie
Posts: 26
UseVerticalSync
«
Reply #2 on:
July 05, 2011, 05:49:22 am »
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
UseVerticalSync
«
Reply #3 on:
July 05, 2011, 07:42:16 am »
It sleeps inside Display() until the monitor is ready to display a new frame.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
DotNet
»
UseVerticalSync
anything