bevyengine / bevyengine/bevy

Mouse click frame drop on Bevy 0.14.0

Open
#14,303 16 comments 1 reaction 0 assignees View on GitHub
A-Rendering A-Windowing C-Bug C-Machine-Specific C-Performance I-Regression O-Linux S-Blocked
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

* Original: 0.13.2
* Current: 0.14.0

## Relevant system information

Rust version: 1.79.0
OS: Ubuntu 24.04
CPU: AMD Ryzen 5 2600 Six-Core Processor
RAM: 15.5 GiB

## What's performing poorly?

When I left or right click the mouse in a very basic Bevy 0.14.0 project, the FPS drops to 10, even in release mode. With Bevy 0.13.2 the FPS drops to 30 when I click the mouse, so still problematic, but not nearly as disruptive.

Small example which reproduces the issue is at https://github.com/JonasAAA/Bevy-Lag. The Bevy 0.13 version of the same code is at https://github.com/JonasAAA/Bevy-Lag/tree/bevy_0.13. Run `cargo run --release` and click the mouse to reproduce the issue.

## Additional information

This issue seems very similar to https://github.com/bevyengine/bevy/issues/14216.

Contributor guide

Open the contributing guide

Research direction

Start by running `cargo run --release` in the linked Bevy-Lag reproduction and compare mouse-click behavior between Bevy 0.13.2 and 0.14.0. Read the related issue #14216 and trace the click-triggered path in Bevy to identify the regression; done means the reproduction no longer suffers the severe click-induced frame drop.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.