bevyengine / bevyengine/bevy

Unstable Scheduling?

Open
#7,828 7 comments 0 reactions 0 assignees View on GitHub
A-Audio A-ECS S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
4d 8m
Merged PRs (30d)
147

Description

## What you did

I'm doing the following test in Bevy 0.9.1:
I'm limiting the framerate to 60fps using the bevy_framepace plugin
Then I'm playing a short 'click' sound every frame using bevy_audio
The expected result is a relatively stable and consistent 60hz tone.
What actually happens is a very noisy signal, and I'm running in release mode.
I did the same test in Godot Engine, and I'm getting the correct outcome there.
I'm attaching a short video of my tests comparing Bevy and Godot below, as well as my Bevy code.
In the code I'm using the Mailbox PresentMode, but the issue is exactly the same in all present modes for me.

https://user-images.githubusercontent.com/118369714/221431020-7b16a68e-c836-4d62-ac4f-f0c8b895e79d.mp4

[AudioTestFrameLimit.zip](https://github.com/bevyengine/bevy/files/10834496/AudioTestFrameLimit.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.