You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aja: output thread loop spins continuously while AJA output is active #1277
plugins/aja/aja-output.cpp.hpp:738: the AJA output thread's main loop ends each pass with os_sleep_ms(1). On Windows that is Sleep(0) (#1274), so the thread spins continuously for as long as AJA output is active, not only when it's busy.
Fix: pace the loop on the card's frame or audio interval (or an event from the SDK), or at least a real ≥1 ms sleep.
Test: if the loop's pacing can be factored out, check that iterations per second while idle stay near the frame rate, not thousands.
Resolved by #1293 (#1274). os_sleep_ms(1) is now a real ≥1 ms sleep on Windows instead of Sleep(0), so the AJA output loop at plugins/aja/aja-output.cpp.hpp:738 no longer yield-spins. That is the minimum fix this issue lists. Pacing the loop on the card's frame interval would need AJA hardware to validate; reopen if someone can measure it.
Activity
zackees commentedon Oct 23, 2026
Resolved by #1293 (#1274).
os_sleep_ms(1)is now a real ≥1 ms sleep on Windows instead ofSleep(0), so the AJA output loop atplugins/aja/aja-output.cpp.hpp:738no longer yield-spins. That is the minimum fix this issue lists. Pacing the loop on the card's frame interval would need AJA hardware to validate; reopen if someone can measure it.