bevyengine / bevyengine/bevy

many_buttons performance regression

Open
#16,318 1 comment 0 reactions 0 assignees View on GitHub
A-UI C-Examples C-Performance D-Straightforward I-Regression S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

This regression was introduced in Remove custom rounding (#16097) at 05d90686fc355c6ae43b108e84b0a7a0a01d7bf9

The commit just before it: af279073aa89352ee7ded402a943f2168e37ef10 is faster.

`cargo run --release --example many_buttons`
Before the #16097 PR: `17.6ms`, after: `21.7ms`.

Windows 10, 7950x, RTX3060, Vulkan

After the PR (05d90686fc355c6ae43b108e84b0a7a0a01d7bf9)
![Image](https://github.com/user-attachments/assets/15edecd8-5b64-450c-a397-1cf404891cff)

Before the PR (af279073aa89352ee7ded402a943f2168e37ef10)
![Image](https://github.com/user-attachments/assets/0ea55d69-f553-4207-a4cb-46b4e5aabd03)

vtune with `cargo run --profile release-with-debug --example many_buttons`

```
[profile.release-with-debug]
inherits = "release"
debug = true
```

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.