Have you disabled all Overlays, Steam, Discord, etc? Did you turn xbox game bar off, and also turn game mode off?

Do you have anything like OBS/Xsplit/etc running?