Setup & Software Discussions
Strange lag / performance issue on eGPU Chrome
 

Strange lag / performance issue on eGPU Chrome  

  RSS

reptilianbrain
(@reptilianbrain)
Trusted Member
Joined: 3 years ago
 

I have eGPU RX580 on Mojave and have strange performance issue with Chrome - some sites (clickup.com) run laggy / noticeably less smooth on eGPU than on internal screen. There is some strange input lag on everything, cursor is blinking slower etc.

Seems like it's the same for Electron-based apps - they are waay more snappier on the internal screen than on the external, that is driven by eGPU

What can it be? really puzzling

 

 

This topic was modified 1 week ago

MBP 2013 750M + Akitio [email protected]GTX1080 (Zotac Mini)


ReplyQuote
clarketus
(@clarketus)
Eminent Member
Joined: 1 year ago
 

@reptilianbrain

I had the exact same issue. The problem is that Chrome is defaulting to using the integrated GPU instead of using the eGPU. For some reason, if the integrated GPU has a connected active display, Chrome will always prefer this instead of any eGPU.

You can observe this by going to chrome://gpu and seeing the available GPUs, and that Chrome has selected the integrated GPU.

The solution for this is stupidly simple, but annoying that there isn't a Chrome config to avoid this. The solution is to just shut the lid of the laptop when using an external display. This puts the laptop into "clamshell mode" which effectively "unplugs" the internal laptop display. 

Once this is done, starting Chrome will result in it selecting the next GPU with an active display, which will be the eGPU. Check chrome://gpu to see if this is the case. Once Chrome has started, you can re-open the laptop lid, and Chrome will continue to use the eGPU even with the internal display being active.

Unfortunately if you are using a setup with a machine using purge-nvda, then clamshell mode is broken. This was the case for me and I was stuck using laggy Chrome.

I just recently tried using a fix for clamshell mode when using purge-nvda, discussed here:
https://egpu.io/forums/builds/MacBook-pro-15-retina-mid-2012-razer-core-x-with-rx-580-and-functional-sleeping-waking-up-and-brightness-control/
I followed the instructions on that build to fix clamshell mode, which worked and as a result I now have Chrome using the eGPU and have a super smooth experience.

From your signature, it looks like you have a different model macbook pro to me, but also one that requires purge-nvda. It would probably still be worth having a go at fixing clamshell mode using the link above as there is a chance the same instructions will work.

Guides:
Mid 2012 15" MBP GT650M Non Retina + [email protected] (Gigabyte Gaming Box via TB3->TB2 adapter) + macOS 10.13.4 / Win10


itsage liked
ReplyQuote
reptilianbrain
(@reptilianbrain)
Trusted Member
Joined: 3 years ago
 

@clarketus

wow thanks that is really interesting! Can you comment if you had similar performance issues in Electron-based apps? For me VSCODE is taking the most noticeable hit

MBP 2013 750M + Akitio [email protected]GTX1080 (Zotac Mini)


ReplyQuote
clarketus
(@clarketus)
Eminent Member
Joined: 1 year ago
 

@reptilianbrain

Ah I don't think I actually use any desktop apps that were developed using the Electron framework.

I did notice significant UI lag with Android Studio and the Android emulator, which was also fixed by starting them while in clamshell mode. I would assume that given there is technically "only one active display" that this solution should also work for Electron apps. Its definitely worth a shot to try it.

Guides:
Mid 2012 15" MBP GT650M Non Retina + [email protected] (Gigabyte Gaming Box via TB3->TB2 adapter) + macOS 10.13.4 / Win10


ReplyQuote