bevy_rapier icon indicating copy to clipboard operation
bevy_rapier copied to clipboard

CPU usages is just ~13% even after setting everything correctly

Open chaoticgood1 opened this issue 4 years ago • 2 comments

OS: Ubuntu 20.04 Bevy: 0.5 Bevy Rapier: 10.02 CPU: Ryzen 4600H

Set the features: https://github.com/Nickan/bevytest/blob/master/Cargo.toml Set the profile.release https://github.com/Nickan/bevytest/blob/master/.cargo/config And the run cargo run --release

Added just 30000 ColliderBundles: https://github.com/Nickan/bevytest/blob/6df6ea9c40838c2cb138355813074f547f891903/src/main.rs#L45

RapierConfiguration::query_pipeline_active to false jumps the fps to 60fps

Actual Result: Still I am just getting ~20fps and only using 13% of CPU

Expected Result: 60fps and use more than 13% of CPU

Edit: Updated CPU percent

chaoticgood1 avatar Oct 02 '21 11:10 chaoticgood1

Closing the issue because it is not as close as the problem I am having.

chaoticgood1 avatar Oct 02 '21 16:10 chaoticgood1

Reopening issue because I forgot to .add_plugin(RapierPhysicsPlugin::<NoUserData>::default()) https://github.com/Nickan/bevytest/blob/6df6ea9c40838c2cb138355813074f547f891903/src/main.rs#L16

chaoticgood1 avatar Oct 07 '21 14:10 chaoticgood1