Skip to content

aja: output thread loop spins continuously while AJA output is active #1277

Closed

Description

@zackees

Part of #1273. A.

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.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions