|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
|
overridevirtual |
Advance clock by computing elapsed frames since last tick.
Self-driven advancement: Calculates how much time has passed since last tick and advances frame count accordingly.
This is fundamentally different from SampleClock::tick(samples) which receives the sample count from external audio callback.
Called from graphics thread loop. Thread-safe for single writer.
| forced_frames | If non-zero, advances by this many frames instead of calculating from elapsed time. Used for testing or special cases. |
Implements MayaFlux::Vruta::IClock.
Definition at line 55 of file Clock.cpp.
References calculate_elapsed_frames(), m_current_frame, m_frame_duration, m_last_tick_time, m_next_frame_time, and update_fps_measurement().
Here is the call graph for this function: