TOPIC: [SSRP] Lag caused by props - potential fix.
[SSRP] Lag caused by props - potential fix.
9 years 8 months ago #245065
Server
SSRP
Title
Removing physics interaction from props, and causing them to only collide with players.
How would it benefit the server
Now, it is to be said that when it comes to programming, i have got no clue whatsoever, but from what i have been able to gather alot of the lag on the server is caused by unfrozen props, potentially colliding with things, such as fences grinding againts each other because of welds.
I was looking through a bunch of settings the other day and i found these ones under the precision tools experimental section, named "Disable Physics on object" and "Only collide with player". I tested them and they seem to have a very positive impact on lag and potentially also game play in general.
What these tools do:
"Disable Physics on object"
The most important one, this thing will essentially put your prop in a permafrozen state, even when blown up the prop will not move even a little bit, that being said it can ofcourse still be blown up, but things like gravity wont affect it.
"Only collide with player"
Basically explains itself, this will cause the props to only collide with players, it will prevent props from grinding againts each other or world objects like lockpicks, health chargers, printers etc. Alone this setting would be a disaster, but combined with the first settings, you will barely feel it.
Potential Issues/Exploits
There are a few prices to pay for these settings being applied, the obvious one being that props wont actually interract and move, so the creativity that is in that would be gone.
Another issue could be that objects such as a printers, weapons, chargers could fall through props, potentially even grenades, this would cause some issues, if say your milkor fell through a prop when raiding, but hopefully there is a fix to this.
However, if this can reduce the amount of lag on the servers, then it seems very much worth it to me.
Additional notes
Im saying it one more time, i am not very experienced with how this actually works, but from what i can gather and from using my common sense it seems logical that this would reduce the amount of lag on the servers. Im sure i have missed something so please, let me know!
[SSRP] Lag caused by props - potential fix.
9 years 7 months ago #247686
Basically, colliding only would players would be a double edged sword because if implemented, it would most likely render casinos, wheels and all sorts of minigames obsolete, which would be a shame, as they add more depth and diversity to the gameplay.
A potential fix for this (although will probably need a bit more work) is to implement a tool which could enable physics collision with props for a certain, limited amount of props (Let's say, 5?)
[SSRP] Lag caused by props - potential fix.
9 years 7 months ago #249947
The lag isn't mainly caused by unfrozen props as if it was, freezing them would fix the lag which it doesn't really, it only decreases it in a small amount.
The lag isn't mainly caused by unfrozen props as if it was, freezing them would fix the lag which it doesn't really, it only decreases it in a small amount.
Yeah, but a good thing to this method is that will render things such as unfreezing to crash a server, obsolete