| KWin
    | 
#include <softwarevsyncmonitor.h>
 
  
| Public Slots | |
| void | arm () override | 
|  Public Slots inherited from KWin::VsyncMonitor | |
| virtual void | arm ()=0 | 
| Public Member Functions | |
| int | refreshRate () const | 
| void | setRefreshRate (int refreshRate) | 
|  Public Member Functions inherited from KWin::VsyncMonitor | |
| VsyncMonitor () | |
| Static Public Member Functions | |
| static std::unique_ptr< SoftwareVsyncMonitor > | create () | 
| Additional Inherited Members | |
|  Signals inherited from KWin::VsyncMonitor | |
| 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.