Commit graph

145 commits

Author SHA1 Message Date
c1bf6cdfcc Fixed few stuff & now server bullet impacts are events
- Fixed some game events not being sent to clients
- Use event instead of descriptor for sending it to client
- Moved server bullets to events
- Re-trained zstd data
- Corrected some stuff on clock correction
2024-07-26 05:34:50 +02:00
631d1ec05c Reworked cl_show* commands to use game events instead 2024-07-25 18:10:35 +02:00
22bbac4a9e Added enhanced cl_clock_correction & misc
- Added vprof
- Fixed few issues again with cl_showhitboxes
- Fixed some shader compilation
- Fixed few issues with bitbuf
2024-07-23 03:05:29 +02:00
6f1a375d58 Added smoothed interpolation amount & fixed fews issues with prediction
Added vprof too
2024-07-19 05:03:08 +02:00
e11f28d2d1 Replace snappy with trained zstd dictionary 2024-07-18 08:27:54 +02:00
dd91e4d8e9 Added new compression for floats 2024-07-17 08:29:22 +02:00
1e534e4e88 Default tickrate to 100 2024-07-16 01:36:55 +02:00
22fc06498f Fixed bullet diameter hitbox test 2024-07-15 23:27:48 +02:00
0c242ac11d Added a better way to debug hitboxes & new waf script 2024-07-15 06:52:33 +02:00
fbc45f4a64 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
a9657ed198 Improved prediction & fix being 1 off tick problems 2024-07-13 19:18:03 +02:00
6df60bed54 Remove network compression on floats 2024-01-23 10:05:26 +01:00
Er2
f72cf388aa public/tier0/platform.h: Remove __restrict not only for linux 2023-12-30 10:34:50 +03:00
nillerusr
cd1c5bd397 fix build for latest musl 2023-11-08 13:26:46 +00:00
nillerusr
b8558de63e fix crash in some cases 2023-10-23 19:52:35 +03:00
nillerusr
c444095293 fix macOS build again 2023-10-07 04:40:28 +03:00
nillerusr
57f6bf6eea fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
nillerusr
2636f1a66d fix macos build( maybe? #296 ) 2023-10-06 03:33:45 +03:00
nillerusr
4f10928299 inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
nillerusr
7f267853f4 vtf: fix vtf loading for windows arm( and for other platforms ) 2023-08-14 18:26:28 +03:00
nillerusr
3d0025b594 vtf: fix vtf header padding 2023-08-14 16:33:34 +03:00
nillerusr
8acf608b4d engine: optimize traces 2023-08-04 13:57:30 +03:00
nillerusr
965ef97212 togl/togles: set D3DMATRIX alignment to 16 2023-04-29 15:34:11 +03:00
nillerusr
657f59ada3 materialsystem: set allocator alignment 16( fixes crash in release build ) 2023-04-26 23:43:04 +03:00
nillerusr
e3edbc2d96 mathlib: make Gain and Bias inline 2023-04-26 22:33:20 +03:00
nillerusr
7ceba77616 WIP: move vmatrix functions to header and inline them 2023-04-26 19:56:15 +00:00
nillerusr
852f4052be fix idiotic libs problems again 2023-04-25 01:18:15 +03:00
nillerusr
38fdbf18c2 fix musl-idiodic libsc problems 2023-04-25 00:40:23 +00:00
nillerusr
699271f212 WIP: musl port 2023-04-24 22:39:09 +00:00
nillerusr
92028d4e80 tier1: fix possible unsafe read in lzss SafeUncompress, make tests pass under asan 2023-04-07 14:59:36 +03:00
nillerusr
4f063c4053 unittests: fix library loading 2023-04-07 13:47:43 +03:00
nillerusr
f1de24b0b2 engine: fix bsp21 loading 2023-04-04 23:22:06 +03:00
nillerusr
1d39be1a97 engine: again fix static prop lump version 10 loading 2023-02-17 01:41:55 +03:00
nillerusr
92a1eae995 android: add extras vpk to PLATFORM path search 2023-02-16 23:15:01 +03:00
nillerusr
9919f7ee95 engine: fix static prop lump version 10 loading 2023-02-16 18:44:33 +03:00
nillerusr
ec3ab23a0e
Merge pull request #198 from nillerusr/serverbrowser
Serverbrowser support
2023-02-16 14:35:01 +03:00
nillerusr
2aa14bb24c restore threadtools and vstdlib from 12716fd commit 2023-02-16 17:32:26 +03:00
nillerusr
c48da00b92 tier0: disable vprof by default 2023-02-11 20:32:11 +03:00
nillerusr
12716fd07f engine(masterserver): Add sequence for requesting server info, implement StopRefresh and use it on timeout 2023-02-10 22:45:36 +03:00
nillerusr
3345902612 togl: fix MacOS build( fixes #187 ) 2023-02-03 02:27:22 +03:00
nillerusr
a08b6ae7bf engine: update server info reply 2023-01-30 22:19:08 +03:00
nillerusr
c4b93b30d7 WIP(serverbrowser): update IServersInfo interface 2023-01-29 20:57:04 +03:00
nillerusr
0df7838ee1 WIP: initial masterserver client implementation 2023-01-28 05:29:26 +03:00
HappyDOGE
c69afba381 Merge branch 'master' into win64 2023-01-23 19:16:19 +03:00
nillerusr
a15db00bc0 materialsystem: threaded optimizations, fix mat_queue_mode on some android devices 2023-01-14 15:53:33 +03:00
nillerusr
3d43e9fe3a togles: optimize PBO usage 2023-01-12 20:48:13 +03:00
exstrim401
e26b40d889
Basic Steam Dick support (#166)
Without gamepadui library
2023-01-08 15:38:24 +03:00
nillerusr
c44ae6211c restore MAXSTUDIOBONES value 2022-12-18 20:24:28 +03:00
nillerusr
bc909e9f96 windows(amd64): fix EHANDLE size( fixes saverestore ) 2022-12-17 12:21:22 +03:00
nillerusr
eff77f0a0a windows: fix 64bit build( #149 ) 2022-12-16 19:20:56 +03:00