halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[HL1/CS] Automatically set ex_interp to the correct value

Open AnAkkk opened this issue 13 years ago • 30 comments

A lot of people don't know what ex_interp is and how to change it, and the default value of 0.1 is generally bad for most players. It increases the feeling of "getting shoot through walls".

Let's take a common example:

Player A has the default ex_interp, which is 100ms, he sees Player B with a 100 ms delay. Player B hides behind a wall, he gets killed by Player A because on player A screen he has not yet hidden behind the wall due to the delay (I know you can wallshoot, but I am not talking about this)

Quake Live got a similar cvar as ex_interp, it's called cl_timenudge. It also has a cvar called cl_autoTimeNudge, which is supposed to set automatically the right interpolation time when turned on. Would it be possible to have something similar?

An other issue is that the default ex_interp should be 0.05 (2/40), as cl_updaterate is no longer at 20 by default. It was changed to 40 with a recent update. I think the default cl_updaterate could probably be higher though, nowadays the connections can handle that.

If you aren't going to change it, maybe at least clamp it and set ex_interp to archive so it gets saved in config.cfg.

Old: https://github.com/ValveSoftware/steam-for-linux/issues/1644

AnAkkk avatar Feb 19 '13 17:02 AnAkkk

who noticed that the shooting isn't like the old one ? u can't get a good spray anymore.. the bullets are to away of the target.. it is very frustrating.

DeNeDe avatar Feb 19 '13 18:02 DeNeDe

The correct formula is 1/updaterate.

ex_interp with a value of 40 should be 0.025, not 0.05. Some players don't even know about the console, how on earth are they supposed to figure all this out? Have an option in the menu for god sake. Pre-configured rates shouldn't be a problem with default rates on high.

@DeNeDe, that has to do with #350 and some other stuff about recoil.

Antoweif avatar Feb 19 '13 19:02 Antoweif

There is no such thing as a "correct formula". By default, Valve has set the interpolation to be done over 2 frames, not 1, in case you are dropping packets. This is in both HL1 and Source engine. The old default updaterate was 20, which is why the ex_interp was set to 0.1 (2/20). Now, it's 40, so with the same formula, it should be 0.05.

The minimum is of course 1/cl_updaterate, if you want to interpolate over only 1 frame.

AnAkkk avatar Feb 19 '13 19:02 AnAkkk

Using 2/updaterate with 100 updaterates is begging for trouble. Not my business though.

Antoweif avatar Feb 19 '13 19:02 Antoweif

I ask again, is it possible to add command which absolutely disable interpolation, just like in source via cl_interpolate 0

r3n4m3 avatar Feb 19 '13 19:02 r3n4m3

cl_interpolate was removed for a good reason from Source engine games. Interpolation shouldn't be disabled, it's part of the calculations in the lag compensation code and the hitboxes are fucked up if you do. This is not what this thread is about anyway.

AnAkkk avatar Feb 19 '13 19:02 AnAkkk

if we remember that the number of FPS is huge, and imagine that implement a large number of rates the staff will be more than a second, and it is unnecessary to interpolate anything. Personally, I recognize the possible problems, and I want have the opportunity to turn off the interpolation.

r3n4m3 avatar Feb 19 '13 21:02 r3n4m3

ex_interp 0 sets it automatically. You could force that value under sv_cheats 0.

MaximilianKohler avatar Feb 20 '13 00:02 MaximilianKohler

ex_interp shouldn't be forced with cl_updaterate, because server could have own updaterate limits.

LevShisterov avatar Feb 20 '13 01:02 LevShisterov

Most good servers let u use ex_interp 0.01 cl_updaterate 101 cl_cmdrate 101

And cl_updaterate should be 101 for the ex_interp to be 0.01

AndreiRomania avatar Feb 20 '13 06:02 AndreiRomania

@AndreiRomania, some servers have sv_maxupdate 60. And you will have jerking models if you will set as you suggested.

LevShisterov avatar Feb 20 '13 08:02 LevShisterov

The client still knows what it's "real" update rate is (not cl_updaterate), so it could automatically adjust ex_interp depending of the "real" update rate.

AnAkkk avatar Feb 20 '13 09:02 AnAkkk

No, client can only suppose (calculate) real update rate. Server doesn't inform client about updaterate limits. In my opinion it doesn't changes much, where you are killed, before or behind the wall, you will be dead anyway.

LevShisterov avatar Feb 20 '13 11:02 LevShisterov

I never talked about updaterate limits. Of course the client does know what the real update rate is, as he's the one getting information from the server. How do you think net_graph know the update rate in Source engine games?

AnAkkk avatar Feb 20 '13 11:02 AnAkkk

That is why I talk about updaterate limits, so this case doesn't gets out of view. We are about GoldSource engine. I am just against of forcing ex_interp with cl_updaterate, cos this is wrong IMHO.

LevShisterov avatar Feb 20 '13 12:02 LevShisterov

LevShisterov Ok so you encourage people to use 0.1 and you like to shoot next to the player and still get a kill? :O

Tell you what go create New Game and play with your frends the [Pod]Bots, ok?

AndreiRomania avatar Feb 20 '13 14:02 AndreiRomania

Same situation will be in this case: client 1 have cl_cmdrate 20, client 2 have cl_updaterate 100. Client 2 will receive updates about client 1 with rate of 20. If ex_interp will be forced, client 1 will jerk on the screen of client 2.

LevShisterov avatar Feb 20 '13 17:02 LevShisterov

no

Client 1 has interpilation set to 0.1 ( Client 1 has the advantage over Client 2 unable to be hit and kills client 2 ) Client 2 has interpolation set to 0.01 ( Client 2 is not sure where to shoot Client 1 -> moves in frames )

This is why interpolation should be set to 0.01 and updaterate and cmdrate to 100.

And come on, nobody has dile-up internet connection or Pentium 3 to play the game with interp 0.1 .... COME ON PEOPLE.

AndreiRomania avatar Feb 20 '13 18:02 AndreiRomania

You're wrong. I know a lot of people who play CS 1.6 on laptops using "Mobile broadband modem" (USB-modem) http://en.wikipedia.org/wiki/Mobile_broadband_modem in 3G or 4G networks. It's like dial-up

ghost avatar Feb 20 '13 18:02 ghost

And they are ? 1.5% from the total number of players ?

For corect gameplay and a fair gameplay interp should be 0.01 period.

AndreiRomania avatar Feb 20 '13 18:02 AndreiRomania