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 running under asahi-linux #1516

Open
8RATH opened this issue Jan 19, 2025 · 1 comment
Open

High CPU usage running under asahi-linux #1516

8RATH opened this issue Jan 19, 2025 · 1 comment

Comments

@8RATH
Copy link

8RATH commented Jan 19, 2025

Describe the bug
A clear and concise description of what the bug is.

Moonlight use about 30% of my CPU despite it is not connected to anything.

Steps to reproduce
Any special steps that are required for the bug to appear.

  1. Grab a apple silicon device (mine is a M2 MacBook Air), run asahi linux (Fedora Remix) on it, then install moonlight via flatpak.
  2. Try to launch the moonlight app
  3. without connecting to any stream, look at moonlight's CPU usage

Other Moonlight clients

  • Does the issue occur when using Moonlight on iOS or Android?

No

Moonlight settings (please complete the following information)

  • Have any settings been adjusted from defaults?
  • If so, which settings have been changed?
  • Does the problem still occur after reverting settings back to default?

I tried different codec settings (Force Software Decoding, Force H264), does not seem to affect the problem. Other than this, everything is default.

**Client PC details

client OS: Asahi Linux Fedora Remix
Moonlight version: v6.1.0
GPU: Apple M2 GPU
Linux package type: Flatpak

Server PC details (please complete the following information)

Server not needed. Can replicate this issue without connecting to any server.

Moonlight Logs (please attach)

  • On Windows, Moonlight-###.log files can be found in %TEMP%. Simply type that into the File Explorer path field to navigate there.
  • On macOS, Moonlight-###.log files can be found in /tmp. In Finder, press Cmd+Shift+G, then type /tmp to navigate there.
  • On Linux with the Flatpak, logs print to the terminal when running with the command: flatpak run com.moonlight_stream.Moonlight
  • On Linux with the Snap, logs print to the terminal when running with the command: moonlight

Log too long, see attachment

moonlight_logs.txt

Additional context
Anything else you think may be relevant to the issue
``

@8RATH 8RATH changed the title High CPU usage running ARM64 asahi-linux High CPU usage running under asahi-linux Jan 19, 2025
@cgutman
Copy link
Member

cgutman commented Feb 8, 2025

Moonlight use about 30% of my CPU despite it is not connected to anything.

I wonder if this is because it's using llvmpipe and rendering on the CPU. Can you try running it with the following command which will print out the GL driver in the logs:

flatpak run --env=QSG_INFO=1 com.moonlight_stream.Moonlight

You should see a message like:

00:00:01 - Qt Debug: Creating QRhi with backend OpenGL for window 0x55810e281600 (wflags 0x1)
  Graphics API debug/validation layers: 0
  Debug markers: 0
  Timestamps: 0
  Prefer software device: 0
  Shader/pipeline cache collection: 1
00:00:01 - Qt Debug: Created OpenGL context QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::CompatibilityProfile)
00:00:01 - Qt Debug: OpenGL VENDOR: Intel RENDERER: Mesa Intel(R) Iris(R) Xe Graphics (ADL GT2) VERSION: 4.6 (Compatibility Profile) Mesa 24.3.4 (git-769e51468b)
00:00:01 - Qt Debug: Created QRhi 0x55810ee3aec0 for window 0x55810e281600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants