Skip to content

ALSA cpu usage #322

@alexheretic

Description

@alexheretic

Hello, I recently had a look at Robo Instructus' cpu usage and noticed the audio usage seems high. It's not a huge problem, but I thought I'd raise this in case it tickles the imagination.

I profiled the game without any music, so just occasional sounds and mostly silence. Rodio maintains a single stream and (I presume) will continually write silent bytes -> output.

cpal event loop run_inner is the majority of the game's sampled usage.

Full: robo-instructus-flamegraph.zip

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