Source-1-Games
Source-1-Games copied to clipboard
[TF2] Strange lag when getting killed
Hello. Yesterday, after the latest update me and my friend experienced a huge time-consuming lag, when getting killed on Valve Matchmaking servers. The maps were ctf_2fort, ctf_doublecross and koth_harvest (haven't tried other maps though). After it begins to happen I asked about it in game chat, and received a few confirmations that this lag happened to some guys.
This lag takes almost exactly the whole death period (8-15 seconds) and initiates right after the death camera approaches the killer. It starts with a second lag, and increases in time to the point when I got kicked from a server due to "Client disconnect".
Under "lag" I mean whole game just stops working, and the last played sound is repeating itself, until my next spawn Notice: you must be killed by a player/sentry, not by "kill" in console or jumping down the pit on Double Cross
My PC: uavxp_pc.txt
During this lag RAM usage is not increasing, and CPU utilization is dropping from around 90% to 70%. GPU usage drops to 4%
My custom folder contains Bot Detector Vote HUD, which messes with resource folder
I use Comanglia's Toaster FPS config from here: https://cfg.tf/make/ with a few changes: uavxp_config.zip My friend is using straight up Comanglia: Toaster config without dramatic changes
Also me and my friend were using TF2 Bot Detector software from here: https://github.com/PazerOP/tf2_bot_detector This software sets the priority level for hl2.exe as "high"
Command-line parameters: -novid -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars -noquicktime
I might say that this lag bug could not happen right after the first kill in the first match, but if it hits you - the only solution is rebooting the game
UPD: The only fast way we've found to eliminate this bug after it starting to happen - is to execute hud_reloadscheme command in console
Almost forgot to mention. After this huge lag, some of the enemy (or even my team) players starts to not render at all, and sometimes if they render - they're having my team model for some reason (imagine being in BLU team and getting killed by BLU sniper). Someone in the game chat suggested to me running a "stopdemo" command, but I don't remember if it fixes that model issues

Here's the video with example: https://youtu.be/kIn6BiXYKHM This time bug started to happen after 3 games and 2 enemy team votekicks
Just tested, this bug occurs after 23-25 minutes on ctf_doublecross. I was not using TF2BD and removed any addons from "custom" folder. Only fps config was present
Same here since the recent update, Intel CPU graphics (no mods). Length of game freezes increase with every death until it finally crashes. (ntdll.dll)
Speaking of Intel (CPU) graphics drivers, if that's even relevant, I'm frequently coming across sightings of playermodels with a vertices spiking off in a random direction.
I also noticed that bots are able to change everyone's Flair! cosmetic decals - Troll Face of course.
Changing mat_setvideomode could help btw
Your resolution / window size? Why?
unless you're talking about the good old known invisible player bug after lag/freeze spikes. Recording a demo and stopping it fixes invisible players, but now I have to do it after every death with whatever's causing these freezes at death now. Too bad recording a demo doesn't fix the freezing.
No, mat_setvideomode actually fixes the main bug (death lag), but not for long I suppose. mat_setvideomode has 3 parameters: width, height and windowed.
If you're in fullscreen mode, you can run mat_setvideomode yourW yourH 1 and then mat_setvideomode yourW yourH 0
If in windowed - do the opposite
It's the fastest way to eliminate the death lag I found at the time. It's definitely faster than rebooting the whole game
Actually you seem to be right, except..... For me the first time doing it always takes FOREVER for it to actually switch/change - Long enough to disconnect me, so I recommend not changing the video settings (fullscreen/windowed etc) until after you're off the server if you can help it. - Unfortunately griefers like to hold matches with objectives to instead last for 4 hours, so...
Also, somebody who was also talking about the same problem in a TF2 match seemed to confirm that it isn't only an Intel graphics driver thing, nor laptop. They were desktop with Nvidia and were also getting the death freezing since the update.
I'm not sure, but I suggested everyone change their video settings like here, but like I said, the first time might take forever to switch and disconnect you and I might have gotten most of the server to disappear. XD (maybe)
Hey @Jgr9 , could you provide crash dumps that has been created due to death lag bug? It would be pretty handy for developers to investigate more quickly into that bug
idk, I've always found logs TF2 gives to be pretty useless, but I can't say I actually know for sure in that regard. Also It takes (or can take) quite a while not only for the issue to show, but for it to finally crash, too.
Yeah, I believe it take so long, but I meant not the logs, but crash dump, .mdmp file that is getting created after crash in a TF2's root folder
I don't see one in TF2's root folder. Then again I wonder if verifying the game files deletes them or if it otherwise gets removed anyways? or did I get it to crash before the newest patch (which I'm sure did not address the issue, but)
No, verifying files shouldn't remove these dumps. Okay, that's strange and sad at the same time. Thank you for investigating)
I've talked to a couple people who also have this issue but don't have an intel iGPU, so it might be worthwhile to remove the "Intel Driver" tag from this issue report?
@kisak-valve , can you please remove the "Intel Driver" label from issue?
Ugh... Unfortunately changing the video settings Fullscreen/Windowed still permanently removes objective status from the HUD (Capture Points, Cart progression, etc) until restart, and I still don't know of a way to fix it. hud_reloadscheme doesn't fix it [missing objective status on the HUD]. (nor does switching mini hud)
So that's not a great solution (workaround) either....
By the way, hud_reloadscheme does fix the main issue (death lag)
So I'm making statement that the death lag hug is HUD-related
Wait what, it does? So no need to change video settings then? lol
idk if it's related, but Ever since they added the Friends list to the main screen my game stutters every time Esc is used during game. And yes, disabling the in-game Friends list does remove that issue but then you can't use parties.
Yes, it works for me at least
idk if it's related, but Ever since they added the Friends list to the main screen my game stutters every time Esc is used during game. And yes, disabling the in-game Friends list does remove that issue but then you can't use parties.
Esc and also inventory change menu? I had that issue too, but this is probably Win10 related. When I was on Win7 on the same PC, I didn't experienced that stuttering
I am 100% certain that^ issue started the update before the in-game Friends list appeared, years ago. Probably preliminary changes or whatever.
Yeah, I've read that a Friends panel is causing this, but I'm too lazy to remove it so I can test. You probably can make another issue about this stuttering here
Ok so i thought i had issues with my pc or something but thankfully i am not the only one having this issue I remember having a normal match when then for some reason it was giving me a huge stutter when getting killed even on the next map, the issue stays and becomes more and more annoying my hardware is OS: Windows 10 GPU: GTX 1050TI CPU: AMD Ryzen 3 1200
I'll probably end up trying it tonight, but OP says inputting hud_reloadscheme in console temporarily fixes it (workaround). Try that first once it starts happening. (or more if you want)
The other workaround by changing video settings can unfortunately cause other issues.
Hunches - This probably means there's something with the hud is causing it - It makes me wonder if aimbots use SOME part of the hud to aimbot? Perhaps player outline, even if it's not visible? (and Valve is trying to check for this?) hmm.... idk.
i've seen a couple workarounds and all of them seem to include reloading the hud in some way, material resets like changing video settings are also a way to reload the hud (probably because the game needs to translate the hud to the new resolution)
and regarding that aimbot comment, the server keeps track of what areas the client can and can't see, and will only send data of other players that the client can see, i'm not super familiar with how the cheats work but they probably don't need the team outline to find out where a player is, as long as the server sends that data. although this is probably a bit offtopic for this issue post.
yeah, unfortunately changing some of the video settings can cause objective status on the hud (CP, Payload progression, etc) to disappear permanently and hud_reloadscheme doesn't even fix that for some reason. Yet it sounds like it may fix the new death freezing. i gotta test it myself later
Yup, can confirm that hud_reloadscheme does temporarily fix death freezes.
Ugh.... hud_reloadscheme causes a giant scrollbar to cover Ping on the scoreboard. It's always something.....
Having this same issue too. Just began happening recently. I can only assume it has something to do with the recent update to the game. Uninstalled/reinstalled the game with no custom HUD or mastercomfig in the game files. Issue seemed briefly resolved before coming right back. Incredibly annoying and always seems to last the full 15 seconds.
Yeah unfortunately it is due to the update, I'm part of the mastercomfig discord and recently we fixed an issue which made the freezes worse, but otherwise all that we can do is wait for it to be fixed, and occasionally use a command like hud_reloadscheme to temporarily relieve the issue
The problem is that if I write this command the game freezes and I am banned for lost connection, maybe we can only wait for an update from them, to fix death lag and invisible players.