Yberion / JKA_YBEProxy

Educational project on the creation of a proxy between the server engine and the game module of the game STAR WARS™ Jedi Knight - Jedi Academy™
GNU General Public License v2.0
7 stars 8 forks source link

sv_fps 30 minimum cap, can't run at 20fps #3

Closed kyle108 closed 2 years ago

kyle108 commented 3 years ago

I've compiled YBEProxy in order to try it on a linuxjampded server running at sv_fps 20, but turned out YBEProxy caps sv_fps at minimum of 30 for some reason, without mentioning it.

When sv_fps is set to 20 or below, we can clearly tell that a server still runs at 30 FPS based on the following signs:

Yberion commented 3 years ago

Hello, there is no bug with sv_fps 20 or the default value being 30, it's still 20 by default and still all default behavior.

First of all, you're using linuxjampded, it should indeed display ping 48 with sv_fps 20 with the default behavior. But the ping calculation and some other code that change the behavior of the ping, got hooked and "fixed", this way the ping calculation is more accurate no matter the sv_fps value.

When you set sv_fps to 5, you shouldn't be able to see a difference when putting /snaps higher than 5.

The ping "fix" is in the patchnote pingfix (sort of true ping) & fix ping calculation (c318f53 & 0301bea).