bevy icon indicating copy to clipboard operation
bevy copied to clipboard

FPS Drop in 0.14.0 when moving mouse

Open andreypfau opened this issue 1 year ago • 2 comments

Bevy version

0.14.0

[Optional] Relevant system information

AdapterInfo { name: "Apple M1 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

Move mouse (without grab, not in window, just move mouse)

What went wrong

Huge FPS drop: image image

Code

fn main() {
    App::new()
        .add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest()))
        .add_plugins(ScreenDiagnosticsPlugin::default())
        .add_plugins(ScreenFrameDiagnosticsPlugin)
        .add_systems(Startup, setup)
        .run();
}

fn setup(mut commands: Commands) {
    commands.spawn((
        Camera3dBundle {
            transform: Transform::from_translation(Vec3::ZERO).looking_at(Vec3::ZERO, Vec3::Y),
            ..default()
        },
    ));
}

andreypfau avatar Jul 08 '24 04:07 andreypfau

same here on all my devices, steamdeck, windows

Mergpijp avatar Aug 08 '24 09:08 Mergpijp

I have been unable to replicate this on a M2 macbook air and M1 mac mini

Kees-van-Beilen avatar Aug 22 '24 11:08 Kees-van-Beilen