No description
Find a file
Kamay Xutax cfa5b12eea Fixed local player interpolation and added debug_screenshot_bullet_position
This check permits to fix interpolation problems on the
local player that valve has been (fucking finally)
caring about on counter-strike 2.

To recall the original issue, the
problem that Valve cared about is that interpolation
had some problems with interpolating the local
player because the screen would never in the first
place match the tick "screen", because interpolation
amount could never reach 0.0 or 1.0

Valve solution was to introduce bugs with lag
compensating the local player and made the game worse,
introducing a new way for cheaters to cheat even more
on their games.
I'm joking, but you can clearly see the outcome anyway.

My solution is to simply set interpolation amount
to 0.0 when a tick arrives.

So when we shoot, we get the frame we shot with an
interpolation amount at 0.0, perfectly aligned to user
commands which is ideal for us.

It might look a bit more unsmooth with lower fps
but with high enough fps, the issue goes away anyway.
It's not very noticeable which is very nice for us.
No need to lag compensate the local player anymore !
2024-07-14 00:54:57 +02:00
.vscode Update tasks.json 2023-01-16 07:54:17 -08:00
app/legion 1 2020-04-22 12:56:21 -04:00
appframework android: reset vsync after minimizing window 2023-08-18 15:40:38 +03:00
bitmap add macos workflow, fix filesystem_async max thread count 2023-04-24 18:54:23 +00:00
choreoobjects add wscipt files to build vphysics and game 2021-04-06 22:31:58 +03:00
common fix crash in some cases 2023-10-23 19:52:35 +03:00
datacache datacache: disable async mode 2023-02-17 12:42:56 +03:00
datamodel Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
dedicated dedicated(win32): fix crashes( now it works #310 #225 ) 2023-12-13 21:28:17 +03:00
dedicated_main dedicated(win32): fix build issues #322 2023-12-13 20:18:31 +03:00
devtools Fix an VPC error related to GUID for VS2019 project 2022-01-27 14:28:20 +02:00
dmserializers 1 2020-04-22 12:56:21 -04:00
dmxloader Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
dx9sdk Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
engine Fixed local player interpolation and added debug_screenshot_bullet_position 2024-07-14 00:54:57 +02:00
external Fix an VPC error related to GUID for VS2019 project 2022-01-27 14:28:20 +02:00
fgdlib 1 2020-04-22 12:56:21 -04:00
filesystem fix crash in some cases 2023-10-23 19:52:35 +03:00
game Fixed local player interpolation and added debug_screenshot_bullet_position 2024-07-14 00:54:57 +02:00
gameui gameui: fix disconnect in video settings for multiplayer games 2023-10-08 02:40:43 +03:00
gcsdk fix sln generation 2022-07-26 13:03:48 -07:00
hammer fix sln generation 2022-07-26 13:03:48 -07:00
hammer_launcher change output path in all vpc 2020-10-22 21:00:42 +03:00
inputsystem inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
ivp@c7c4073205 Improved prediction & fix being 1 off tick problems 2024-07-13 19:18:03 +02:00
launcher launcher: don't grab/release mutex if multirun is enabled 2023-03-13 17:47:44 +06:00
launcher_main launcher_main: automatically set LD_LIBRARY_PATH on launch 2022-09-17 18:26:41 +03:00
lib@86a66ee92d game(client): fix atlas generation for touch 2022-09-17 21:00:50 +03:00
linux 1 2020-04-22 12:56:21 -04:00
linux_sdk 1 2020-04-22 12:56:21 -04:00
materialsystem materialsystem: fix color correction on non-windows systems( fixes #137 , #295 related ) 2023-10-06 04:19:51 +03:00
mathlib WIP: move vmatrix functions to header and inline them 2023-04-26 19:56:15 +00:00
mdllib change output path in all vpc 2020-10-22 21:00:42 +03:00
mdlobjects 1 2020-04-22 12:56:21 -04:00
movieobjects 1 2020-04-22 12:56:21 -04:00
networksystem Fix compilation under MSVC(VS2019) 2022-01-13 16:18:38 +02:00
particles fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
public Fixed local player interpolation and added debug_screenshot_bullet_position 2024-07-14 00:54:57 +02:00
raytrace 1 2020-04-22 12:56:21 -04:00
replay Fix VPC scripts for VS2019 2022-02-03 18:18:12 +02:00
scenefilecache fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
scripts fix build scripts for workflow 2023-11-08 21:58:33 +03:00
sdklauncher change output path in all vpc 2020-10-22 21:00:42 +03:00
serverbrowser serverbrowser: copy gametype to map name in quicklist 2023-02-16 17:16:35 +03:00
sfmobjects 1 2020-04-22 12:56:21 -04:00
soundemittersystem fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
soundsystem fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
sourcevr 1 2020-04-22 12:56:21 -04:00
stub_steam waf: don't install some shared libraries when building sdk only 2023-05-24 16:46:25 +00:00
studiorender win64: misc pointer truncation fixes 2023-01-16 11:56:05 +03:00
thirdparty@c5b901ecef move stub steam api from thirdparty submodule 2023-05-23 22:32:30 +00:00
tier0 waf: don't install some shared libraries when building sdk only 2023-05-24 16:46:25 +00:00
tier1 WIP: musl port 2023-04-24 22:39:09 +00:00
tier2 add macos workflow, fix filesystem_async max thread count 2023-04-24 18:54:23 +00:00
tier3 arm64 : fix intptr_t size 2022-06-05 01:12:32 +03:00
togl fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
togles togles: don't use alpha channel in dxt1 decompression for textures without it 2023-04-06 14:36:14 +03:00
tools change output path in all vpc 2020-10-22 21:00:42 +03:00
tracker change output path in all vpc 2020-10-22 21:00:42 +03:00
unicode fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
unitlib workflows: add tests.yml 2022-08-17 12:54:11 +03:00
unittests unitests: add mathlib test 2023-04-23 23:45:09 +03:00
utils add macos workflow, fix filesystem_async max thread count 2023-04-24 18:54:23 +00:00
vgui2 fix build for latest musl 2023-11-08 13:26:46 +00:00
vguimatsurface inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
video Fix macOS build (#146) 2022-11-27 16:48:27 +03:00
vpc_scripts Merge branch 'master' into windows 2022-07-27 12:58:56 +03:00
vphysics Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
vpklib Merge branch 'master' into windows 2022-07-27 12:58:56 +03:00
vstdlib vstdlib: remove old shitty osversion 2023-06-03 22:13:55 +03:00
vtf vtf: fix vtf loading for windows arm( and for other platforms ) 2023-08-14 18:26:28 +03:00
.gitignore hl2: fix random crash when combine throws a can 2023-04-30 17:03:03 +03:00
.gitmodules fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
LICENSE add LICENSE file 2020-12-16 15:14:33 +03:00
README.md README update 2024-05-24 14:35:19 +02:00
thirdpartylegalnotices.txt add LICENSE file 2020-12-16 15:14:33 +03:00
waf update waf, enable gccdeps and msvcdeps 2023-11-24 11:28:25 +03:00
waf.bat fix loading libraries with lib prefix 2021-04-08 22:40:26 +03:00
wscript Compile for CS:S 2024-01-22 21:40:01 +01:00