Skip to content

dropped frames - set scheduling priority? #271

Open
@majg0

Description

@majg0

On my old Windows surface, I'm hearing dropped frames even for the simple beep.rs compiled in release mode. CPU usage is kept really low as expected, so I'm thinking maybe the memory latency is the problem and the buffer size too low, but I'm a newb web guy. I'd love some help in nailing the cause down. I have not dug very much yet. As a first step I guess I should find out what backend is being used. I gather it could be either WASAPI or ALSA? I've found the buffer size to default to 441, whereas it grows to a multiple of that on frame drop. I have yet to try just copying in data instead of computing it, but tbh it's silly - it should be able to handle much more processing per frame imo. I could be conceptually off here as well though; any help is highly appreciated. My main goal atm is to just understand why this is happening and where the bottleneck is. I don't want a hacky workaround, much rather fixing the libs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions