Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse movement is sluggish in scale_factor_override and window_settings examples #7377

Closed
rparrett opened this issue Jan 26, 2023 · 2 comments
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples

Comments

@rparrett
Copy link
Contributor

Bevy version

main

Relevant system information

AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
SystemInfo { os: "MacOS 13.1 ", kernel: "22.2.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }

What you did

  • cargo run --example scale_factor_override or
    cargo run --example scale_factor_override --release
  • move mouse around in window

What went wrong

Movement is super janky

Additional information

This is happening because the window title is being updated every frame.

@rparrett rparrett added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jan 26, 2023
@rparrett
Copy link
Contributor Author

rparrett commented Jan 26, 2023

A quick/dirty attempt to fix this with change detection failed, because moving the mouse changes the window too.

@Elabajaba
Copy link
Contributor

Can confirm this also happens on Windows.

@rparrett rparrett added C-Examples An addition or correction to our examples A-Windowing Platform-agnostic interface layer to run your app in and removed S-Needs-Triage This issue needs to be labelled labels Jan 27, 2023
@rparrett rparrett changed the title Mouse movement is sluggish in scale_factor_override example Mouse movement is sluggish in scale_factor_override and window_settings examples Feb 3, 2023
@bors bors bot closed this as completed in f69f132 Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples
Projects
None yet
2 participants