Skip to content

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

@Giacom

Description

@Giacom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-PerformanceA change motivated by improving speed, memory usage or compile times

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions