Skip to content

Massively Degraded WebGPU performance #11220

Description

@cshenton-work

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:

image image image

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:

image

Something has clearly gone awry.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorC-PerformanceA change motivated by improving speed, memory usage or compile timesO-WebGPUSpecific to the WebGPU render API

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions