Coalesces browser frame notifications and invalidates callbacks across shutdown/restart.
More...
#include <algorithm>
#include <array>
#include <atomic>
#include <cstdint>
#include <cstdlib>
#include <optional>
|
| std::optional< double > | donner::editor::NextScheduledFrameDeadline (std::optional< double > previousDeadlineMs, std::optional< double > nextDeadlineMs, bool eventFrame) |
| | Preserve scheduled work across asynchronous event frames that cannot service an animation tick.
|
Coalesces browser frame notifications and invalidates callbacks across shutdown/restart.
◆ NextScheduledFrameDeadline()
| std::optional< double > donner::editor::NextScheduledFrameDeadline |
( |
std::optional< double > | previousDeadlineMs, |
|
|
std::optional< double > | nextDeadlineMs, |
|
|
bool | eventFrame ) |
|
inline |
Preserve scheduled work across asynchronous event frames that cannot service an animation tick.
- Parameters
-
| previousDeadlineMs | Deadline owed before this frame, on the host's monotonic clock. |
| nextDeadlineMs | Recomputed deadline after this frame, or no remaining idle work. |
| eventFrame | Whether this frame services an event rather than a scheduled tick. |