|
RADLib
RADical C++ application framework
|
Coalesces UI updates so expensive redraws occur at a target frame rate. More...
#include <RADUi.h>
Public Member Functions | |
| FrameScheduler (double framesPerSecond=60.0) | |
| Creates a scheduler capped at framesPerSecond. More... | |
| ~FrameScheduler () | |
| Stops the scheduler worker. More... | |
| FrameScheduler (const FrameScheduler &)=delete | |
| Schedulers are owned by one bridge/model and are not copied. More... | |
| FrameScheduler & | operator= (const FrameScheduler &)=delete |
| Schedulers are owned by one bridge/model and are not copied. More... | |
| void | requestUpdate (std::function< void()> task) |
| Requests that task run on the UI thread at the next scheduled frame. More... | |
Coalesces UI updates so expensive redraws occur at a target frame rate.
|
explicit |
Creates a scheduler capped at framesPerSecond.
| RADUi::FrameScheduler::~FrameScheduler | ( | ) |
Stops the scheduler worker.
|
delete |
Schedulers are owned by one bridge/model and are not copied.
|
delete |
Schedulers are owned by one bridge/model and are not copied.
| void RADUi::FrameScheduler::requestUpdate | ( | std::function< void()> | task | ) |
Requests that task run on the UI thread at the next scheduled frame.