KWin
|
#include <softwarevsyncmonitor.h>
Public Slots | |
void | arm () override |
![]() | |
virtual void | arm ()=0 |
Public Member Functions | |
int | refreshRate () const |
void | setRefreshRate (int refreshRate) |
![]() | |
VsyncMonitor () | |
Static Public Member Functions | |
static std::unique_ptr< SoftwareVsyncMonitor > | create () |
Additional Inherited Members | |
![]() | |
void | errorOccurred () |
void | vblankOccurred (std::chrono::nanoseconds timestamp) |
The SoftwareVsyncMonitor class provides synthetic vblank events with constant interval.
The software vsync monitor can never fail and it is always available. It can be used as fallback if hardware based approaches to monitor vsync events are unavailable.
The vblank interval can be changed by calling the setRefreshRate() function.
Definition at line 25 of file softwarevsyncmonitor.h.
|
overrideslot |
Definition at line 44 of file softwarevsyncmonitor.cpp.
|
static |
Definition at line 12 of file softwarevsyncmonitor.cpp.
int KWin::SoftwareVsyncMonitor::refreshRate | ( | ) | const |
Definition at line 23 of file softwarevsyncmonitor.cpp.
void KWin::SoftwareVsyncMonitor::setRefreshRate | ( | int | refreshRate | ) |
Definition at line 28 of file softwarevsyncmonitor.cpp.