question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High CPU usage on macOS?

See original GitHub issue

Describe the bug After creating an app from the avalonia.app and running it, I see high CPU usage on my Mac (approx 6-10% on a M1 Max). If I run the same project on Windows, I see very low CPU usage, which is expected from an application idling (0.48% on a 10700k).

Doing actions such as moving the mouse on the window sends the CPU up to 35% CPU, whereas on Windows it uses 8%.

To Reproduce Steps to reproduce the behavior:

dotnet new avalonia.app dotnet run

Expected behavior After the application initialised, the CPU should drop down to a reasonable level.

Screenshots image

Desktop (please complete the following information):

  • OS: [e.g. Windows, Mac, Linux (State distribution)] macOS Ventura 13.3 (MacBook Pro, 14-inch, 2021, M1 Max)
  • Version [e.g. 0.10.0-rc1 or 0.9.12] 0.10.18

Additional context Add any other context about the problem here. (Windows numbers were multiplied by x16 from the taskmgr value, as macOS uses per-core CPU values, whereas Windows uses totals)

Issue Analytics

  • State:open
  • Created 5 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
GabrielHalvonikcommented, Aug 14, 2023

Well for me, I observed this pretty much constantly during last year in all versions I tried on MB Air M1…including latest 11.0.3 one. This is minimal repro I tried, even without rendering any window, cpu idle is constantly hanging somewhere around 7%. With or without window to render.

Screenshot 2023-08-14 at 18 03 17

(this one is 11.0.3 with .net 8 preview)

0reactions
GabrielHalvonikcommented, Aug 15, 2023

It behaves the same way in the previous version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Fix High CPU Usage on macOS
5 Ways to Fix High CPU Usage on macOS · 1. Update Software and Restart Your Mac · 2. Use Activity Monitor to...
Read more >
CPU usage more than 100% on iMac
It all depends on what is reporting the CPU usage, and whether they want to count all cores and hyperthreading as fraction of...
Read more >
How to reduce CPU usage on Mac - CleanMyMac X
If the CPU usage is edging around 100%, your Mac is trying to do more work than it has the capacity for. Luckily,...
Read more >
How to Fix High CPU Usage on Your Mac
When an app consumes excessive CPU, it may hang or stop responding to user input. Your best option is to force quit it....
Read more >
Top 5 Ways to Fix High CPU Usage on Mac
Top 5 Ways to Fix High CPU Usage on Mac · Quit Unnecessary Apps · Remove Login Items · Use Activity Monitor to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found