blaisewang / img2latex-mathpix

Mathpix has changed their billing policy and no longer has free monthly API requests. This repo is now archived and will not receive any updates for the foreseeable future.
Apache License 2.0
1.39k stars 209 forks source link

[Mac] Discrete graphics waken during usage #22

Closed hamkz closed 4 years ago

hamkz commented 4 years ago

Just asking, do we really need to switch to discrete graphics when using img2latex? I'd prefer integrated graphics if possible, as it uses lower power and makes less fan noise.

P.S. I am using 2018 15 inch macbook pro

github-actions[bot] commented 4 years ago

[Auto response] Sorry for your first issue in this repo. We will review it ASAP.

blaisewang commented 4 years ago

Will implement this proposal according to this post in next release. But not sure if the solution will work.

hamkz commented 4 years ago

Will implement this proposal according to this post in next release. But not sure if the solution will work.

Sounds great! Thanks a lot!

blaisewang commented 4 years ago

Will implement this proposal according to this post in next release. But not sure if the solution will work.

Sounds great! Thanks a lot!

Hi, sorry for the late reply, I am quite busy with my job recently. The solution to fix this issue doesn't apply to this app as there is no Info.plist in the project. As stated in the FQA section, the native self-contained executable application will be released after the GA release of Java 14 in 2020. At that time, I will try to fix this issue by this solution.

blaisewang commented 4 years ago

Hi, sorry for the late reply, I am quite busy with my job recently. The solution to fix this issue doesn't apply to this app as there is no Info.plist in the project. As stated in the FQA section, the native self-contained executable application will be released after the GA release of Java 14 in 2020. At that time, I will try to fix this issue by this solution.

As of 0.3.1 release, macOS app bundle is provided. However, after testing with gfxCardStatus and above hypothetical solution, this issue will not be fixed. Set the NSSupportsAutomaticGraphicsSwitching=true does not work for this case. This issue could be fixed automatically in the future if openjfx or later Java releases set default GPU behaviour as I have planted proper settings.