#include <vsync.h>

Non-phase-maintaining. There may occasionally be short periods of jitter that eventually go away.
This method does not maintain phase and uses the most CPU of any of the VSync methods. But it is the catch-all fallback algorithm, TryInit(void) always succeeds.
Definition at line 265 of file vsync.h.
Public Member Functions | |
| BusyWaitVideoSync (VideoOutput *, int frame_interval, int refresh_interval, bool interlaced) | |
| ~BusyWaitVideoSync () | |
| QString | getName (void) const |
| Returns name of instanciated VSync method. | |
| bool | TryInit (void) |
| Tries to initialize VSync method. | |
| void | WaitForFrame (int sync_delay) |
| Waits for next a frame or field. | |
| void | AdvanceTrigger (void) |
| Use the next frame or field for CalcDelay(void) and WaitForFrame(int). | |
Private Attributes | |
| int | m_cheat |
| int | m_fudge |
| BusyWaitVideoSync::BusyWaitVideoSync | ( | VideoOutput * | vo, | |
| int | frame_interval, | |||
| int | refresh_interval, | |||
| bool | interlaced | |||
| ) |
| QString BusyWaitVideoSync::getName | ( | void | ) | const [inline, virtual] |
| bool BusyWaitVideoSync::TryInit | ( | void | ) | [virtual] |
| void BusyWaitVideoSync::WaitForFrame | ( | int | sync_delay | ) | [virtual] |
Waits for next a frame or field.
Start(void), WaitForFrame(void), and Stop(void) should always be called from same thread, to prevent bad interactions with pthreads.
| sync_delay | time until the desired frame or field |
Implements VideoSync.
| void BusyWaitVideoSync::AdvanceTrigger | ( | void | ) | [virtual] |
int BusyWaitVideoSync::m_cheat [private] |
int BusyWaitVideoSync::m_fudge [private] |
1.5.5