[Bug] Pickup.Timer / Pickup.RespawnTimer lag issue

Started by VK.Angel.OfDeath, Jul 28, 2016, 07:16 AM

Previous topic - Next topic

VK.Angel.OfDeath

I am not 100 % sure if this bug has been reported before or if it is just me using the function wrong, but I see no reason not to report it. I understand that this issue is easy to get around by simply making your own RespawnTimer or by simply not using it all (since there seems there seems to be some inbuilt that scripts that prevents people from picking up a pickup more than once every 2 seconds).

Description
I have noticed that a pickup that uses Pickup.Timer compared to a pickup that doesn't use Pickup.Timer seems to up the download rate by a factor of about 10, which have lead to a lot lag for players that are near a lot of pickups with a Pickup.Timer.

Some more information:
I used version rel004 on a windows 10 computer 32 bit.
All the downloads I used:
Server file - http://forum.vc-mp.org/?topic=3352.0
All plugins except squirrel: http://forum.vc-mp.org/?topic=2719.0
Updated squirrel plugin: http://forum.vc-mp.org/?topic=3306.0

I have also downloaded all the client updates.


Reproducible
You won't notice it on a locally hosted server by yourself, but as soon as you get someone with over 100-200 ping with a bad/decent internet connecting they will experience a delay in everything by 15-20 seconds.

What you were doing when the bug happened
I spawned 50 pickups in a circle (with a radius of 5 m ) and made a script that will set the Pickup.Timer of a Pickup to 5000 when you enter it. Before I entered the pickups my download rate was only 0.1 kbps to 2 kbps, but as soon as I entered all the 50 pickups I saw how the download rate increased to 50-100 kbps. Obviously it wasn't noticeable to me since I had 0 ping on the server I tested it on, but my friends with 50-300 ping had to quit the game due to the huge lag they experienced in the chat and from other players.

When I later removed Pickup.Timer everyone's download rate seemed to be normal (even when you entered all the pickups) and no one experienced any lag anymore from being around 50 pickup's all spawned in one circle.

What you think caused the bug
It was either me using Pickup.Timer wrong without receiving any errors or there is some issue with the respawn timer for pickups that makes them unusable.

Anik

I have noticed that too. I used to thought its my own problem only.


EK.IceFlake

These two are different issues. One is when streaming pickups and other is when pickin' them up

VK.Angel.OfDeath

Quote from: Thijn on Jul 28, 2016, 04:24 PMDid this update not fix it?
http://forum.vc-mp.org/?topic=3333.msg24900#msg24900

I used the server.exe file that was posted 2 days after that update (http://forum.vc-mp.org/?topic=3352.new#new), so I guess it didn't resolve all the issues. In my topic there are links to everything that is used while testing this bug, in case that I forgot to update some plugin or something.