Open wrefgtzweve opened 3 months ago
I'm also experiencing the same issue: random lag spikes after that console spew.
Same here.
Can you please provide a link to a map that is known to cause the issue?
Not sure what I can do with "Wait a certain amount" at any rate.
Switching from https://steamcommunity.com/sharedfiles/filedetails/?id=2010286798 or https://steamcommunity.com/sharedfiles/filedetails/?id=2925489145 to gm_construct
will trigger it on spawning in
Not exactly the same as the issue players have as that happens even after spawning in, but that can happen multiple times so im assuming that its the same issue.
I just found a way to reliably trigger it.
PrecacheParticleSystem( "invalidparticle" )
Yeah it seems like if you PrecacheParticleSystem
an invalid particle, it will print warnings about stuff from the previous map.
You can probably reproduce:
PrecacheParticleSystem( "invalid" )
I have pushed some changes to dev
that may or may not fix the issue, can you guys please test it and let me know if the hangs you were experiencing are gone?
Seems to help a lot yeah! I did notice that a 3 still showed up but there wasn't any lag.
Attemped to precache unknown particle system "qudtchfnrs"!
CMaterial::PrecacheVars: error loading vmt file for particle/warp_rain
CMaterial::PrecacheVars: error loading vmt file for particle/vistasmokev1_add_nearcull
CMaterial::PrecacheVars: error loading vmt file for particle/moth/moth
Might just be from the current map/addon rather than the previous map
Details
Loading into any map after playing on a map with packed content will cause CMaterial::PrecacheVars errors. I'm not exactly sure why or how long it takes before it happens on the next map but it seems to happen roughly at the same time for all clients on the server so i assume something is triggering it. I've had cases where the lag spike was triggered twice with a few seconds in between so there is highly likely some kind of way to manually trigger it which i cannot figure out. Console will effectively be flooded with dozens of these lines:
This causes a massive lag spike for players. This is extra annoying for gamemodes like TTT which switch map rather frequently.
Steps to reproduce
The main issue is that i don't know exactly how to trigger the lag pike, it seems to be rather random.