Author Topic: Simple update to dramatically increase wintersurvival performance  (Read 220 times)

0 Members and 1 Guest are viewing this topic.

Offline Mufasa

  • *
  • Posts: 38
  • Respect: +14
I used to play wintersurvival very cautiously, as you may know it's constantly using about the maximum possible bandwidth for gmod, at 25kbps no matter how many players there are
this is most likely due to the fact that at the start of every round, probably over 100 props are spawned, and left unchecked
i've modified one of the LUA files in wintersurvial to make the entities check every 2 seconds if they are moving, and if they arent, freeze yourself so the server no longer has to handle your movements/possible physics interactions
think about it, 100 props no longer sending physics information to every player on the server

probable advantages of this are:
massive server usage reduction
little or no gameplay changes
more players ( i used to stop playing because i had a capped amount of bandwidth )
less lag
less bandwidth usage

possible disadvantages are:
perhaps props freezing in a weird position (even though it would have stopped in that position anyway)

anyway, my upgrade is here
http://pastebin.com/r2rRAu0T
copy the contents of that into wintersurvival>entities>entities>ws_item>init.lua (replace what's in there)

if any bugs/exploits come of the update, i would be willing to commit to fix them for the sake of a better running server

Offline Deathie

  • ***
  • Windows User
    View More Badges!

  • Posts: 5293
  • Gender: Female
  • Respect: +2069
    • Some music shit I made
Re: Simple update to dramatically increase wintersurvival performance
« Reply #1 on: May 23, 2011, 09:45:01 PM »
0
Looks like a really good contribution.  :thumbsup: to be added to WS. Might start playing on it more anyways.


Check out my Soundcloud for some neat stuff!

Offline Dale Feles

  • Hoersface
  • ******
  • Posts: 2938
  • Gender: Male
  • Respect: +622
Re: Simple update to dramatically increase wintersurvival performance
« Reply #2 on: May 24, 2011, 03:22:12 AM »
0
Thank god, less lag!  :thumbsup:




Thank you Marie for the sprite.

Offline ٶȻhriʂ

  • AIM, IT IS ABOUT PRECISION
  • *****
  • Donator
    View More Badges!

  • Posts: 1314
  • Gender: Male
  • THEY TALK ABOUT MY 1 TAPS
  • Respect: +394
Re: Simple update to dramatically increase wintersurvival performance
« Reply #3 on: May 24, 2011, 03:36:08 AM »
0
good idea :thumbsup:



Offline Sabb

  • ***
  • 2009 Snowball Competition WinnerWindows UserOld Forum MemberDedicated Summoner
    View More Badges!

  • Posts: 7378
  • Gender: Female
  • Respect: +2400
Re: Simple update to dramatically increase wintersurvival performance
« Reply #4 on: May 24, 2011, 04:09:52 AM »
0
I don't play WS, but this looks legit.
Noice.


Lithuanian pride world wide!: sun doesnt revolve around the sun


Offline coolzeldad

  • ******
  • OwnerDonatorOld Forum MemberrNd DeveloperLinux UserWindows UserDog LoverLeague PlayerDWO Player
    View More Badges!

  • Posts: 3333
  • I eat ddos for breakfast OMNOMONOM
  • Respect: +2711
    • .:`=-~rANdOm~`-=:. Game Servers
Re: Simple update to dramatically increase wintersurvival performance
« Reply #5 on: May 24, 2011, 09:29:26 PM »
0
Thanks for investing time into the contribution!

It just checks low velocity movements and stops the props all together?

The major lag and shiz will still happen at the beginning of each round, unless you just trying to prevent the last movements of the props when they are on the ground.

I'll test how much bandwidth is actually saved as I believe this was your goal.

//Edit:
Just checked, bandwidth is still averaging 21.5 k/s and spiking >= 25 k/s

I see no change in server performance..

Thanks tho :)
« Last Edit: May 24, 2011, 09:47:14 PM by coolzeldad »
 ▲
▲▲Big thanks to Marie for this awesome sprite! :3

Spoiler: Moar Imagez (click to show/hide)
pingaz
Thanks Cryptokid!

Thanks gamefreak!


-- My youtube: http://www.youtube.com/coolzeldad
-- My deviantart: http://coolzeldad.deviantart.com
-- My soundcloud: http://www.soundcloud.com/coolzeldad
-- My ustream: http://www.ustream.tv/channel/coolzeldapingaz
-- My twitchtv: http://www.twitch.tv/coolzeldad

-- rNd Wiki: http://wiki.randomgs.com
-- rNd Youtube: http://www.youtube.com/RandomgsProductions
-- rNd Steam Group: http://steamcommunity.com/groups/r_A_N_d_O_m

Spoiler: rNd Typography (click to show/hide)





Every time you download Garry's Mod illegally, Garry makes a bug.

When people ask me "Plz" because its shorter than "Please" I feel perfectly justified to answer "No" because its shorter than "Yes".

derp herp lerp perp kerp serp zerp - say faiv timez fazt


Offline Peetah

  • ******
  • League PlayerWindows UserDog Lover
    View More Badges!

  • Posts: 3000
  • Gender: Male
  • Respect: +823
Re: Simple update to dramatically increase wintersurvival performance
« Reply #6 on: May 25, 2011, 03:29:55 PM »
+2
Nevertheless good effort!
This is what we need in this community.
(Reg) Nezz45: peetah are you good with the weight tool?

Offline coolzeldad

  • ******
  • OwnerDonatorOld Forum MemberrNd DeveloperLinux UserWindows UserDog LoverLeague PlayerDWO Player
    View More Badges!

  • Posts: 3333
  • I eat ddos for breakfast OMNOMONOM
  • Respect: +2711
    • .:`=-~rANdOm~`-=:. Game Servers
Re: Simple update to dramatically increase wintersurvival performance
« Reply #7 on: May 25, 2011, 06:17:27 PM »
+5
I wanted to add that from a technical standpoint, the engine puts physics objects to sleep after a certain amount of time with no physics interaction which accomplishes what your code was attempting to do.

Just info for future reference :)

Yes good effort is nice.

I believe we have this in many forms already, with many contributions from everyone on a variety of levels: guides, translators, funny posters, serious posters, solid reporters, helpful players, language moderators, dedicated VIP, Regulars, Admins and good people :). However, seeing it continue is great! I also think it's necessary to have this, it's what has formed this community from the very start into what it is today and will continue well into the future.
 ▲
▲▲Big thanks to Marie for this awesome sprite! :3

Spoiler: Moar Imagez (click to show/hide)
pingaz
Thanks Cryptokid!

Thanks gamefreak!


-- My youtube: http://www.youtube.com/coolzeldad
-- My deviantart: http://coolzeldad.deviantart.com
-- My soundcloud: http://www.soundcloud.com/coolzeldad
-- My ustream: http://www.ustream.tv/channel/coolzeldapingaz
-- My twitchtv: http://www.twitch.tv/coolzeldad

-- rNd Wiki: http://wiki.randomgs.com
-- rNd Youtube: http://www.youtube.com/RandomgsProductions
-- rNd Steam Group: http://steamcommunity.com/groups/r_A_N_d_O_m

Spoiler: rNd Typography (click to show/hide)





Every time you download Garry's Mod illegally, Garry makes a bug.

When people ask me "Plz" because its shorter than "Please" I feel perfectly justified to answer "No" because its shorter than "Yes".

derp herp lerp perp kerp serp zerp - say faiv timez fazt


Offline Dale Feles

  • Hoersface
  • ******
  • Posts: 2938
  • Gender: Male
  • Respect: +622
Re: Simple update to dramatically increase wintersurvival performance
« Reply #8 on: May 26, 2011, 03:15:41 AM »
0
I wanted to add that from a technical standpoint, the engine puts physics objects to sleep after a certain amount of time with no physics interaction which accomplishes what your code was attempting to do.

Just info for future reference :)

Yes good effort is nice.

I believe we have this in many forms already, with many contributions from everyone on a variety of levels: guides, translators, funny posters, serious posters, solid reporters, helpful players, language moderators, dedicated VIP, Regulars, Admins and good people :). However, seeing it continue is great! I also think it's necessary to have this, it's what has formed this community from the very start into what it is today and will continue well into the future.

What amazes me is that... did you realize each time a member says ''i'm leaving'' they end up coming back after a couple of weeks/days, and I'm not just talking about gamefreak/little fox, I'm sure there's much more. This just shows that we have a very kind and nice community, since they always want to comeback, or else, why would they even bother rejoining? The power of rNd




Thank you Marie for the sprite.

Offline Deacon

  • The righteous rise, with burning eyes
  • ***
  • DonatorDWO Player
    View More Badges!

  • Posts: 4482
  • Gender: Male
  • of hatred and ill-will
  • Respect: +1788
Re: Simple update to dramatically increase wintersurvival performance
« Reply #9 on: May 26, 2011, 03:37:08 AM »
0
What amazes me is that... did you realize each time a member says ''i'm leaving'' they end up coming back after a couple of weeks/days, and I'm not just talking about gamefreak/little fox, I'm sure there's much more. This just shows that we have a very kind and nice community, since they always want to comeback, or else, why would they even bother rejoining? The power of rNd

i've spent an awful lot of time hovering over that "delete account" button
never did it

Offline bipolardiz

  • ****
  • Posts: 383
  • Gender: Male
  • BipolarDiZ is bipolar
  • Respect: +50
Re: Simple update to dramatically increase wintersurvival performance
« Reply #10 on: May 26, 2011, 12:58:21 PM »
0
Most people come back to RND after leaving.... its more of a break than anything. You cant be with the same people for to long. They start to annoy you.

And Coolz, really well said! :D

<07:31:01> "Moo"
: im australian black 6 yr girl from texas