Login to ZARP





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!
  • Gems
  • Gems's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Posts: 681
  • Thanks received: 508
  • Karma: 20
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 8 months ago #245097

Seems like a nice fix, otherwise you could take a look at my suggestion?

Edit: I think also alot the lagg caused on servers is also entities, messages and similar things. Either way it seems like an idea to work around.
  • catboy sven ツ
  • catboy sven ツ's Avatar
  • Offline
  • Adept Boarder
  • ZARP VIP
  • Respected Zarp Contributor
  • Posts: 7209
  • Thanks received: 1547
  • Karma: -44

ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)








Last Edit: 9 years 8 months ago by catboy sven ツ.
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 8 months ago #245113

Aspect wrote:
Seems like a nice fix, otherwise you could take a look at my suggestion?

Edit: I think also alot the lagg caused on servers is also entities, messages and similar things. Either way it seems like an idea to work around.
Mainly physics and large amounts of players.

With the players I have no idea what function is causing the lag. Perhaps it's the movement calculation? But i don't think it would be... Idk
  • kristofferson
  • kristofferson's Avatar
  • Offline
  • Gold Boarder
  • ZARP VIP
  • 420 Blaz It Son
  • Posts: 2664
  • Thanks received: 627
  • Karma: -39
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 7 months ago #246349

Bump
  • Gems
  • Gems's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Posts: 681
  • Thanks received: 508
  • Karma: 20
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 7 months ago #247583

Bump
  • Gems
  • Gems's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Posts: 681
  • Thanks received: 508
  • Karma: 20
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 7 months ago #247675

im gonna drive thru your new district base with my car then ayy
  • xSeppe
  • xSeppe's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP
  • Steam Profile Link In Signature!
  • Posts: 1059
  • Thanks received: 142
  • Karma: 8
Login or register to post a reply.

[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?)
  • Nutzu3650XL
  • Nutzu3650XL's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP
  • Posts: 4105
  • Thanks received: 1544
  • Karma: 1
Last Edit: 9 years 7 months ago by Nutzu3650XL.
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 7 months ago #249943

Bump
  • Gems
  • Gems's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Posts: 681
  • Thanks received: 508
  • Karma: 20
Login or register to post a reply.

[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.
  • AfroHat
  • AfroHat's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP
  • Anime or Life?..... Anime.
  • Posts: 1569
  • Thanks received: 354
  • Karma: 23
Login or register to post a reply.

[SSRP] Lag caused by props - potential fix. 9 years 7 months ago #249957

Richard © wrote:
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
  • Nutzu3650XL
  • Nutzu3650XL's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP
  • Posts: 4105
  • Thanks received: 1544
  • Karma: 1
Login or register to post a reply.
Moderators: MadMagic, Joshua, Kanna.

Time to create page: 0.155 seconds

114 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
3/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
0/32
Online
Connect to server View Gametracker Surf
0/32
Online
Connect to server View Gametracker Prop Hunt
0/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
111/983
Online
Top