WASM perf regression: App updates triggered by input events #13965
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
C-Performance
A change motivated by improving speed, memory usage or compile times
D-Complex
Quite challenging from either a design or technical perspective. Ask for help!
P-Regression
Functionality that used to work but no longer does. Add a test for this!
S-Needs-Review
Needs reviewer attention (from anyone!) to move forward
Milestone
Bevy version
Relevant system information
Please include:
What's performing poorly?
I discovered that after updating my wasm app to 0.14, it feels very sluggish.
Here is a minimal reproducible example:
When idle the square moves in a circle. Moving the cursor or keeping a key pressed, the square will begin to skip around.
Additional information
We can see that after 0.14, updates are triggered by pointermove events. Painting only happens about once every 3 frames as a result. The same happens when keeping a key pressed.
Before:
After:
The text was updated successfully, but these errors were encountered: