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

Mozilla VPN uses discrete GPU on MacOS / intel #9660

Open
noambonnie opened this issue Jun 12, 2024 · 4 comments
Open

Mozilla VPN uses discrete GPU on MacOS / intel #9660

noambonnie opened this issue Jun 12, 2024 · 4 comments

Comments

@noambonnie
Copy link

noambonnie commented Jun 12, 2024

Mozilla VPN uses the discrete GPU on MacOS Intel Macbooks. Tested on MacBook Pro 2018.

The reason this is a problem is that invoking the discrete GPU causes the MacBook hardware to heat up, fans to go off, and battery drain.

I am not familiar enough with the project, but this is likely triggered by some dependency. I've seen on another project that the shift from QT5 to QT6 causes a similar problem.

Since the UX of the VPN is very basic, perhaps there's a way to disable the use of the discrete GPU.

I tested this using gfxCardStatus (https://github.com/codykrieger/gfxCardStatus)

Screenshot 2024-06-12 at 21 44 19

When I quit the VPN:
Screenshot 2024-06-12 at 21 45 08

┆Issue is synchronized with this Jira Task

@noambonnie
Copy link
Author

I should note that this happens whether connected to the VPN or not - as long as the app is running.

I should also explain that once the discrete GPU is used, all apps use it, making the problem worse. For example, watching a video or a video call will drain the battery even faster and will render the MacBook extremely hot.

Tested on MacOS Sonoma 14.5

@noambonnie
Copy link
Author

@noambonnie
Copy link
Author

From Apple developer web site: https://developer.apple.com/library/archive/qa/qa1734/_index.html

@oskirby
Copy link
Collaborator

oskirby commented Jul 4, 2024

Whatever the cause of this might be, it is not as simple as simply enabling NSSupportsAutomaticGraphicsSwitching - we already set it to True in our Info.plist. And a quick read through of the Qt OpenGL support suggests that it should be configuring the window with the required NSOpenGLPFAAllowOfflineRenderers flag too.

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