core icon indicating copy to clipboard operation
core copied to clipboard

Excessive full screen CPU usage (desktop)

Open 0pcom opened this issue 5 months ago • 0 comments

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

0pcom avatar Jul 15 '25 22:07 0pcom