So yesterday, i was playing a bit of mge with some of my team and the game was acting normal, but i was getting alt-tabbed out of the game at seemingly completely random times. I could go for up to 10 minutes without having it happen, or have it happen twice in the span of 5 seconds, so i haven't noticed any kind of pattern in that sense.
Also noting that i had played both during the morning and later during the evening, and the problem started during the evening, with seemingly no reason since i don't recall having done anything to alter the system since, i just took a break and came back and booted up tf2 like always.
I don't recall anything having been updated recently, but it's possible that Windows 10 updated without me realising because i don't check how my computer is doing while i leave it shutting down.
I've since run a few scans with SuperAntiSpyware, Malwarebytes and Avast and nothing outside simple adtracking cookies was found and deleted. It persists.
I've tried giving hl2.exe a higher priority on the task manager but again no to avail.
It's absurdly infuriating and i don't know what to do anymore. Ask whatever info about the system you may need, i'll try to answer as best i can.
EDIT: Realized i could add a few more observations i've gathered since the problem started.
- Only happens in TF2. Was playing DBFighterZ right after for a solid half hour and there was no such problem.
- There doesn't need to be user input. It happened when spectating or dead, when my hands were completely away from both keyboard and mouse.
- It tabs out to whatever is open. If there's nothing it goes to the desktop, so there's seemingly no connection with anything open.
- I don't see any CMD prompt when tabbed out.
EDIT 2: This worked for me! I played for around half an hour with no issues
WafuI had this issue a few days ago and mine was linked to Avast. I went into settings and in the components tab there was a do not disturb mode which was active, I uninstalled that and the issue went. Hope this helps someone.