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

High CPU usage when game is unfocused or on a different monitor #1105

Closed
Giacom opened this issue Dec 20, 2020 · 3 comments
Closed

High CPU usage when game is unfocused or on a different monitor #1105

Giacom opened this issue Dec 20, 2020 · 3 comments
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Performance A change motivated by improving speed, memory usage or compile times

Comments

@Giacom
Copy link

Giacom commented Dec 20, 2020

Bevy version

3b2c6ce

Operating system & version

Windows 10

What you did

  1. Ran the breakout example.
  2. Put the game window on your primary monitor and focused on a different window app.
  3. Put the game window on a secondary monitor.

What you expected to happen

I should expect the game to run at a consistent low CPU usage when unfocused or on a secondary monitor.

What actually happened

The game will run at 8% CPU usage when focused but as soon as it is unfocused, i.e you clicked on a different app window, it'll start running at a 25% CPU usage. This will also happen when moving the game window to a different monitor other than your primary one.

Additional information

I have a 240hz gsync 1080p (primary) and a 60hz 1080p (secondary) monitor. Maybe the game's frame limiter/vsync gets uncapped/turned off during the above conditions.

i7 7700K
1070 GTX

@memoryruins memoryruins added C-Performance A change motivated by improving speed, memory usage or compile times A-Windowing Platform-agnostic interface layer to run your app in labels Dec 22, 2020
@r1sc
Copy link

r1sc commented Jan 10, 2021

This happens here as well with just one monitor and the app focused. 25% CPU utilization..

@seanlinsley
Copy link

On macOS, an empty Bevy app jumps ~4x CPU usage when the window is completely hidden behind other windows 🤔

@alice-i-cecile
Copy link
Member

Closed by #3974.

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-Performance A change motivated by improving speed, memory usage or compile times
Projects
None yet
Development

No branches or pull requests

5 participants