-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed as not planned
Labels
C-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-PerformanceA change motivated by improving speed, memory usage or compile timesA change motivated by improving speed, memory usage or compile timesO-WebGPUSpecific to the WebGPU render APISpecific to the WebGPU render API
Milestone
Description
Bevy version
main#cf70f532
Relevant system information
Windows 11, Chrome
What you did
Even a basically empty application has severely degraded performance on main
on WebGPU. The following:
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins((DefaultPlugins,))
.add_systems(Startup, (setup,))
.run();
}
fn setup(mut commands: Commands) {
commands.spawn((Camera3dBundle { ..default() },));
}
Results in a profile that looks like this:



That prepare_windows
system is one of the culprits but generally speaking just everything is taking ages.
If I instead build against the 0.12.1
release on crates.io, I get a clean profile:

Something has clearly gone awry.
Vrixyz
Metadata
Metadata
Assignees
Labels
C-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-PerformanceA change motivated by improving speed, memory usage or compile timesA change motivated by improving speed, memory usage or compile timesO-WebGPUSpecific to the WebGPU render APISpecific to the WebGPU render API