I realize there are a lot of old threads about similar issues, but I couldn't find any that were close enough to mine. After playing TF2 for like 20-30 minutes, I notice that my mouse input begins to lag and my framerate goes down slightly (from like 300 to like 250). I've had this issue for a few years and have never been able to figure it out. I've fresh installed TF2 multiple times, used different mice, and this problem has persisted over a few different CPU's and GPU's. I'm not sure if I'm going crazy or not, but there is a noticeable increase in mouse input delay after a while of playing. If I restart my PC, it goes back to the normal buttery smoothness for a little while. But, just restarting the game doesn't seem to help too much. I've tested for overheating and other things like that but temps are all okay, it also doesn't seem to happen in any other game. The people I've talked to have suggested it could be a memory leak, but I'm not really sure what could be causing it.
If it helps -- I use default tf2 HUD, Mastercomfig stuff, DX8.1, 144hz, and Fullscreen stretched 1024x768. I can add more info if needed.
I would appreciate any help or suggestions so I don't have to restart my PC after each half of scrims :)
UPDATE: SEEMINGLY FIXED--
It seems to be fixed now. From what I can tell, the issue was with my SSD and my OS. I fresh-installed Windows10 onto my HDD and the issue is completely gone for now. Figured I would update this in case anyone else has the same issue in the future. Just move your OS from your SSD to a different drive and it should fix. Thanks for everyone who tried to help!
UPDATE: I lied, see below.