Commit graph

140 commits

Author SHA1 Message Date
6691968046 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
a2e8d9e9d4 Update mouse calls at the end of the frame 2024-07-20 01:04:35 +02:00
96e8394525 Corrected again a bit more cl_showimpacts 2024-07-19 18:05:58 +02:00
860bd3e883 Added smoothed interpolation amount & fixed fews issues with prediction
Added vprof too
2024-07-19 05:03:08 +02:00
171fb676af Added clang-format & remove zstd training define 2024-07-18 21:41:53 +02:00
4067d7cfe6 Added zstd training set 2024-07-18 21:15:37 +02:00
1a3e348316 Replace snappy with trained zstd dictionary 2024-07-18 08:27:54 +02:00
a1f071b698 Fixed most issues on windows, shaders are still a problem 2024-07-17 23:38:56 +02:00
4186c83682 Added new compression for floats 2024-07-17 08:29:22 +02:00
81793ee7a4 Optimized usercmd network 2024-07-16 05:13:14 +02:00
6661ad2e3c Fixed bullet diameter hitbox test 2024-07-15 23:27:48 +02:00
e360866bf5 Added a better way to debug hitboxes & new waf script 2024-07-15 06:52:33 +02:00
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
ca6cdb51e6 Improved lag compensation 2024-01-25 13:27:03 +01:00
nillerusr
eff1f3d78c Merge pull request #312 from AruMoon/add-master-server
Add new master server
2023-12-30 11:44:00 +03:00
nillerusr
543f3091eb dedicated(win32): fix crashes( now it works #310 #225 ) 2023-12-13 21:28:17 +03:00
nillerusr
fb521f8559 dedicated(win32): fix build issues #322 2023-12-13 20:18:31 +03:00
AruMoon
41638048b7 Add new master server 2023-10-25 05:18:51 +05:00
nillerusr
9fbed1af34 fix crash in some cases 2023-10-23 19:52:35 +03:00
tyabus
2a764a215e engine: Fixed vgui_drawtree on 64 bit engine 2023-10-07 20:23:37 +06:00
nillerusr
6fd13e16d9 fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
nillerusr
80d74c5e55 Restore tslist for trace info( fix #295 ) 2023-10-05 19:36:24 +03:00
nillerusr
378f2dee02 fix crash on game close when demo recording 2023-10-04 22:22:31 +03:00
nillerusr
bcb4b7f635 android: fix black screen after minimizing window in materialsystem queue mode 2023-08-18 13:49:07 +03:00
nillerusr
08168ffc62 inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
nillerusr
1f9aba1a40 engine: fix loading static prop lump version 7 2023-08-15 16:47:35 +03:00
nillerusr
c96b2576a6 engine: optimize traces 2023-08-04 13:57:30 +03:00
nillerusr
3ff7140437 WIP: musl port 2023-04-24 22:39:09 +00:00
nillerusr
b7b1a09bb1 engine: fix black screen in changelevel 2023-04-09 09:44:41 +03:00
nillerusr
61b905e43c tier1: fix possible unsafe read in lzss SafeUncompress, make tests pass under asan 2023-04-07 14:59:36 +03:00
nillerusr
e9636671a0 engine: fix bsp21 loading 2023-04-04 23:22:06 +03:00
tyabus
542f2261d3 engine: restore sv_hibernate_when_empty 2023-03-12 21:17:49 +06:00
nillerusr
c55c94320f engine: fix windows build( windows must die ) 2023-02-20 22:02:41 +03:00
nillerusr
5b9b74b87c engine: fix Map_IsValid for mapcycle 2023-02-20 21:03:47 +03:00
nillerusr
deb6ed0975 engine: add -nobackgroundlevel command-line argument 2023-02-20 20:07:23 +03:00
nillerusr
6db2f2c1e0 engine: don't check sv_lan value in masterserver requests when DEDICATED is defined 2023-02-19 15:18:49 +03:00
nillerusr
5c8612d580 engine: again fix static prop lump version 10 loading 2023-02-17 01:41:55 +03:00
nillerusr
89165459f9 change PROTOCOL_VERSION to 25 2023-02-16 22:47:32 +03:00
nillerusr
071c4d827f engine: fix static prop lump version 10 loading 2023-02-16 18:44:33 +03:00
nillerusr
99537aaa46 Merge pull request #198 from nillerusr/serverbrowser
Serverbrowser support
2023-02-16 14:35:01 +03:00
nillerusr
3b20e2404c engine(masterserver): fix servers duplication 2023-02-14 20:22:18 +03:00
nillerusr
7be935079d engine: fix cmdrate/updaterate values 2023-02-13 00:27:40 +03:00
nillerusr
d3bfa892fd engine(masterserver): typo fix 2023-02-11 20:34:27 +03:00
nillerusr
e5bbe17c2e engine(masterserver): add master request timeout 2023-02-11 19:36:39 +03:00
nillerusr
783c3f6056 engine(masterserver): add additional masterserver, implement setmaster command 2023-02-11 19:17:57 +03:00
nillerusr
2aa9ebd13f engine(masterserver): fix latency calculation 2023-02-11 15:57:06 +03:00
nillerusr
28b785aa65 engine: set net_usesocketsforloopback 0 by default( 1 breaks singleplayer mode ) 2023-02-11 15:56:06 +03:00
nillerusr
a7d3ad4032 engine(masterserver): Add sequence for requesting server info, implement StopRefresh and use it on timeout 2023-02-10 22:45:36 +03:00
nillerusr
d81e6520d9 engine: update server info reply 2023-01-30 22:19:08 +03:00
nillerusr
e194f6ca2c WIP: Begin rewriting serverbrowser 2023-01-29 19:26:04 +03:00