steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

using pingboost 3 and sys_ticrate 10000 causes animation to speed up

Open Posse1 opened this issue 13 years ago • 11 comments

On 1.6 linux distros. It used to be find about a year ago, but after one of the updates it broke. Whenever anyone uses -pingboost 3 and +sys_ticrate 10000 it speeds up the gameplay. the gun reload animation gets fast and the round timer counts down quicker, same with the bomb plant timer.

Posse1 avatar Feb 01 '13 00:02 Posse1

Just making sure, this was for CS1.6, right?

MrSchism avatar Feb 01 '13 01:02 MrSchism

Yes, just like it says in the beginning of my explanation :)

Posse1 avatar Feb 01 '13 01:02 Posse1

Oops, pressed close and comment, instead of comment :D

Posse1 avatar Feb 01 '13 01:02 Posse1

Well it's too bad there is no clear documentation on sys_ticrate and pingboost, and how they interact with each other.

A while ago I experimented with strace and gdb to find this out, and somehow I came to the conclusion (if I remember correctly), that the maximum valid value for sys_ticrate is 1000 and if you use pingboost 3, the network packets get polled.

But I would really love an explanation from a dev on this topic.

ghost avatar Feb 01 '13 02:02 ghost

There may not even be any point to set sys_ticrate that high, if the ticrate is working like on the Source Engine (not sure about that), there might not be any real difference between 100 and 1000, as the clients will always receive 100 updates/s max anyway (cl_updaterate being set to 100). Alfred, could you comment about that, please? :)

AnAkkk avatar Feb 01 '13 09:02 AnAkkk

This happens when HLDS processes >1000FPS (or, in oher words, sleep time is less than 1 msec) There is a code in Host_FilterTime that causes speedup:

    if ( host_frametime < 0.001 )
    {
      host_frametime = 0.001;
      return 1;
    }

This line should be removed to fix the issue:

host_frametime = 0.001;

thecrock avatar Feb 02 '13 11:02 thecrock

thecrock As in Host_FilterTime remove this line??? host_frametime = 0.001 Thank you!

lotus33 avatar Feb 03 '13 18:02 lotus33

lotus33, Did you mean 'how to remove this line?"? You can't remove it, because you don't have source code. However, you can patch engine_*.so/swds.dll and remove instructions that are responsible for this action. This is tricky and I can't explain how to do it in few words.

thecrock avatar Feb 04 '13 20:02 thecrock

How much will it cost? ? Who can make this work?

lotus33 avatar Feb 04 '13 20:02 lotus33

I'll remove the lower bound check on host_frametime. Running at 10k FPS won't actually help you all, due to cl_updaterate being clamped (and then just the frame times of all the clients and the network overheads) but if you want to try then go nuts.

alfred-valve avatar Feb 04 '13 21:02 alfred-valve

Maybe it would be a good idea to lock the tickrate like in Source engine games.

AnAkkk avatar Feb 04 '13 21:02 AnAkkk