Skip to content

Excessive full screen CPU usage (desktop) #1590

@0pcom

Description

@0pcom

Describe the bug

With linux desktop compilation and even the basic hello world example or an empty body, when I make the window of the desktop native C.O.R.E. application full screen, the CPU usage is excessive. I'm using built-in / onboard graphics, not a GPU, so the CPU ends up doing a lot of work regardless.

Running the hello world example - full screen - my CPU usage goes up to between 60-80% ; compared to idling at or below 5% CPU usage.

Making the window smaller helps a lot. If the window size is reduced to perhaps 2/3rds or 3/4ths of full screen, the cpu usage barely increases, except on resize. There is an intermediate point of window size that causes intermittent spikes in cpu usage, but with a floor not far above baseline.

Note: this is not a critical or breaking issue for me, currently. Just wanted to make the devs aware.
I trust that this will be improved in the future.

How to reproduce

  • run hello worldexample
  • observe CPU usage
  • full screen the window
  • observe CPU usage
  • adjust window size smaller
  • observe CPU usage
  • adjust window size again
  • observe CPU usage
  • repeat the previous 2 steps

Example code

Relevant output

Platform

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions