Loading...
Searching...
No Matches
score::gfx::DisplayVSyncClock Class Referencefinal
Wraps ScreenNode's swap-chain vsync callback path (clock #1, push). More...
Inheritance diagram for score::gfx::DisplayVSyncClock:
Detailed Description
Wraps ScreenNode's swap-chain vsync callback path (clock #1, push).
start(tick) forwards tick straight into OutputNode::setVSyncCallback, so the compositor drives the render exactly as before; stop() clears it.
Public Member Functions | |
| DisplayVSyncClock (OutputNode &output) | |
| Kind | kind () const noexcept override |
| void | start (std::function< void()> tick) override |
| Begin delivering ticks. | |
| void | stop () override |
| Stop delivering ticks and release the underlying tick source. | |
Additional Inherited Members | |
Public Types inherited from score::gfx::RenderClock | |
| enum class | Kind { Timer , DisplayVSync , ExternalGenlock } |
Member Function Documentation
◆ kind()
|
inlineoverridevirtualnoexcept |
Implements score::gfx::RenderClock.
◆ start()
|
overridevirtual |
Begin delivering ticks.
tick is invoked once per render tick, on the render thread. The clock owns the tick source (timer, vsync registration, or hardware wait loop).
Implements score::gfx::RenderClock.
◆ stop()
|
overridevirtual |
Stop delivering ticks and release the underlying tick source.
Implements score::gfx::RenderClock.
The documentation for this class was generated from the following files:
- RenderClock.hpp
- RenderClock.cpp
Public Types inherited from