I've got a MacBook Pro (15-inch, 2017 model, from work) plugged into a large 4K external monitor via a USB-C to DisplayPort cable.
It's worked nicely since I started using this setup a few weeks ago, rendering 60fps at 4K with no issues. But something strange has started happening today: the entire screen flickers green whenever CPU usage is high. It flickers briefly when I scroll complex web pages, for example.
I suspected the flicker was related to CPU usage, and used Activity Monitor to confirm this. When I open the App Store, for example, I can see it consumes a ton of CPU on launch, and the flickering gets much worse at exactly the same time. If I'm doing non-intensive work, like typing in this box right now, there is no flicker at all.
Does this indicate a possible electrical fault in the MacBook Pro? I considered whether it might be a dodgy DisplayPort cable, but I guess the signal coming through this cable shouldn't be affected by CPU usage, unless there's a fault in the laptop itself. Could it be that the graphics card is becoming underpowered while the CPU usage is high?
UPDATE: I switched the DisplayPort to USB-C cable for a new one, and it solved the flickering. But this still concerns me: why should the DisplayPort cable be affected by CPU usage at all? I'm concerned this indicates an electrical fault, which may have cause the cable to become faulty (so perhaps it will damage this new cable too over time).
The flickering with the original cable happens when the laptop is powered by either mains or battery.