#Steam Community :: Error
1 messages · Page 1 of 1 (latest)
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
i thought of that too, but i don't think i can even get material on sv realm
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
a shitty way would be using something like https://wiki.facepunch.com/gmod/Enums/MAT and then just use preset colors idk how well that'd work
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
"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
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
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
its the file.Exists, the lag was gone when i removed it :P
you can just keep a cache of checked models
that's what i'm gonna do
Just saw this a bit ago super sick
stuttering issue should be fixed now
theres some other ideas i have if you want but they're more difficult tho
it currently doesnt account for map props that are non entities https://steamcommunity.com/sharedfiles/filedetails/?id=204621664
example map that uses a lot of them
https://github.com/Nak2/NikNaks/wiki/Static-Props can probably help
i don't really want to have any dependencies though