I have a 2017 Macbook Pro (2.9GHz quad core i7 running Ventura macOS) that SUDDENLY has slowed down to a crawl. "top" shows less than 10% idle when no apps are running, but shows "WindowServer" consuming high CPU (>50%). I ran malwarebytes and found no malware. Not only computer performance is slow, but typing is delayed and network feels like on old dialup.
How can I troubleshoot whatever has suddenly taken up my CPU?