#Steam Community :: Error

1 messages · Page 1 of 1 (latest)

fervent tulip
#

could be cool if you get the average color of the main props material and network that @twin edge

#

idk how you'd get the average color on sv though but if its possible it'd be pretty neat

twin edge
#

i thought of that too, but i don't think i can even get material on sv realm

fervent tulip
#

you can probably also file.Write the returned models

#

so when you rejoin it doesnt have to redownload the meshes, and instead it can use cached clientside models

fervent tulip
fervent tulip
#

this does make my game freeze every second

#

its probably due to you looping over all the entities, getting their model and then using file.Exists

#

you should probably only run that once per model

twin edge
#

"addons are a mess, some can change entity models on the fly so you never can trust them"
i'll try to optimise that as much as i can, but on my end, I don't experience any stutters, so I can't say for sure it this will help

fervent tulip
#

i run my game off a nvme so it cant be a system issue

#

did you test it on a map with missing models?
like try a ttt map without having css mounted

#

~20ms stutters each time

twin edge
#

that may be the cause too, both server and client don't know about this model and just bail out trying to load it

#

or that can be ragdoll bone networking stuff, not sure

#

i'll look into it tomorrow

fervent tulip
#

its the file.Exists, the lag was gone when i removed it :P

twin edge
#

fair enough, requests to filesystem are no good

fervent tulip
#

you can just keep a cache of checked models

twin edge
#

that's what i'm gonna do

burnt cape
#

Just saw this a bit ago super sick

twin edge
#

stuttering issue should be fixed now

fervent tulip
#

theres some other ideas i have if you want but they're more difficult tho

#

example map that uses a lot of them

twin edge
#

i don't really want to have any dependencies though