-
Notifications
You must be signed in to change notification settings - Fork 14
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
Discontinue use of the dedicated GPU on Intel MacBook Pros #32
Comments
Hey, thanks for the comment. I'll investigate why that is happening. You're right, I suppose that's egui. I don't own a Macbook with a dedicated internal GPU, so I might ping you back for testing if I think I have a solution. |
Happy to test; also happy to dive into the code a bit more when I have a chance to see if I can isolate why it's happening. |
Hey, I did some research and it seems two things are required: First: Adding this entry to the <key>NSSupportsAutomaticGraphicsSwitching</key>
<string>YES</string> https://developer.apple.com/library/archive/qa/qa1734/_index.html Second: This context builder needs an additional
I'll look into creating a PR for this. I you want, you could create a lokal |
So, the info.plist key is <key>NSSupportsAutomaticGraphicsSwitching</key>
<true/> which by itself only causes the app to crash. Working on the recompilation step; will attempt to repro and report back. |
Did you try to edit the Info.plist in the app downloaded from Github or did you build it yourself? The downloaded one is Gatekeeper Notarised, so editing any of the contents (e.g. the Info.plist) will invalidate the hash and thus the notarisation. When I build it with the info plist key, it doesn't crash - at least on my M1 system. |
I've created an egui issue to see if the project is interested in implementing a fix |
Postsack causes MacBook Pros with two GPUs to switch to the dedicated GPU, causing increased battery drain.
There's no reason I can see why it would need to do that; I presume it's a consequence of the Egui library usage.
Please investigate and fix, so battery life usage can decrease. Thanks!
The text was updated successfully, but these errors were encountered: