bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.24k stars 3.57k forks source link

game_menu example took 93% of cpu #13314

Closed adals closed 5 months ago

adals commented 6 months ago

Bevy version

main branch

OS version

Apple M1 Max macos sonoma 14.4.1 (23E224)

What you did

cargo run --example game_menu

What went wrong

when clicking close it did not respond and it took 5-10 seconds to close and it took 93% of cpu

Screenshot 2024-05-10 at 5 07 07 PM

alice-i-cecile commented 6 months ago

What OS are you on?

adals commented 6 months ago

What OS are you on? Apple M1 Max macos sonoma 14.4.1 (23E224)

mockersf commented 6 months ago

probably related to https://github.com/bevyengine/bevy/issues/13208

adals commented 6 months ago

probably related to #13208

FYI even if I did not touch close button it took around 93% of cpu

JMS55 commented 6 months ago

Try running in release mode.

adals commented 6 months ago

Try running in release mode.

it decreased to 50% of cpu and also hang after pressing close button

adals commented 5 months ago

FYI hello-triangle wgpu example. maybe it could help

Screenshot 2024-06-07 at 5 23 47 PM

alice-i-cecile commented 5 months ago

Closing as a duplicate of #10261. That was very helpful :)