WindowServer high CPU usage periods at certain time intervals
Recently started noticing strange periods where the system UI was being choppy for no apparent reason. Looking at the activity monitor I see that WindowServer is sitting at 20-30% CPU usage during these periods. Curiously this happens at 12 hour intervals exactly, at 6 AM and 6 PM, and goes on for about 30 minutes. Then the UI is back to its snappy self for another 12 hours. So clearly something is taxing the GPU by quite a bit in the background to cause the system UI to drop frames.
How can I dig further into the WindowServer process to figure out what is going on with it?
I did not add any new software to the system recently but I do have quite a lot installed as well as various other system tweaks.
Any help is greatly appreciated.
MacBook Pro