MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ delay_amount

uint64_t MayaFlux::Vruta::graphics_promise::delay_amount = 0

The amount of delay units for incremental delays.

When using delays that accumulate (like BufferDelay for audio), this stores the increment amount. For graphics, this would be the frame increment for continuous animations.

Example:

auto animation = []() -> GraphicsRoutine {
while (true) {
render_frame();
co_await FrameDelay{1}; // delay_amount = 1
}
};
A C++20 coroutine-based graphics processing task with frame-accurate timing.
Definition Routine.hpp:504

Definition at line 328 of file Promise.hpp.