HaodongMo / ARC-9

The nineth weapon base for Gmod by Arctic
99 stars 57 forks source link

Terrible Hitreg #257

Open Wolf48911 opened 2 months ago

Wolf48911 commented 2 months ago

Multiplayer Hitreg just sucks, I don't know what all is going on with the back end but it seems like its mostly or entirely server sided. Causing a lot of false hits, confusion and anger on everyone's end. If I can get some form of confirmation that either this is true or that the Hitreg will be addressed at some point that would be amazing. Here is some more information with stuff that might be helpful I'm not sure.

bullet physics is off. everyone is below 70 ping average this is across all the packs we've used (poly arms, EFT, Day of infamy, Gunsmith arms source) 66 tick rate peer to peer 64x bit beta same results with bullet pen and ricochets on or off

edshot99 commented 2 months ago

There is a big network optimization problem and it hasn't been addressed as far as I know regardless of what settings or weapon packs you use or don't use.

Video demonstration: https://www.youtube.com/watch?v=0nD2Fe2_ynU

The optimization problems start with the fact that just standing idle with an Arc9 gun out is already generating a ton of network traffic (as seen in the video) with about 12 players. Firing the guns off just makes the server stutter and fluctuate in tickrate causing hit registration to be completely inaccurate. I also included a comparison to ArcCW where this problem is non-existent for reference.

After using a profiler (https://github.com/FPtje/FProfiler) I found that the main cause of this problem is the animation and shooting code.

This can be seen by the following video when firing off the gun while using a camera placed somewhere else. https://www.youtube.com/watch?v=eBUxuaB0kjw

Wolf48911 commented 2 months ago

@edshot99

So its likely caused by the TPIK and related systems. But I'm not sure turning it off would help at all because its a client option all that information is still sent and received if I'm correct (which i could be wrong). And even if it did TPIK is one of the main reasons i want to use arc9.

Thank you for replying and giving an explanation as to why the Hitreg is all over the place. Do you think there is any possible solution? And if it is TPIK anything aside from removing it?