Commit graph

139 commits

Author SHA1 Message Date
c1e81ad97c Default tickrate to 100 2024-07-16 01:36:55 +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
f8c641a9e5 Improved prediction & fix being 1 off tick problems 2024-07-13 19:18:03 +02:00
a72e160350 Remove network compression on floats 2024-01-23 10:05:26 +01:00
Er2
445249ef2b public/tier0/platform.h: Remove __restrict not only for linux 2023-12-30 10:34:50 +03:00
nillerusr
84a7a117b6 fix build for latest musl 2023-11-08 13:26:46 +00:00
nillerusr
9fbed1af34 fix crash in some cases 2023-10-23 19:52:35 +03:00
nillerusr
e955976d81 fix macOS build again 2023-10-07 04:40:28 +03:00
nillerusr
6fd13e16d9 fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
nillerusr
8e5d66ead5 fix macos build( maybe? #296 ) 2023-10-06 03:33:45 +03:00
nillerusr
08168ffc62 inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
nillerusr
265a4f171b vtf: fix vtf loading for windows arm( and for other platforms ) 2023-08-14 18:26:28 +03:00
nillerusr
538254c8a8 vtf: fix vtf header padding 2023-08-14 16:33:34 +03:00
nillerusr
c96b2576a6 engine: optimize traces 2023-08-04 13:57:30 +03:00
nillerusr
98837c0e9e togl/togles: set D3DMATRIX alignment to 16 2023-04-29 15:34:11 +03:00
nillerusr
fedae1cc7b materialsystem: set allocator alignment 16( fixes crash in release build ) 2023-04-26 23:43:04 +03:00
nillerusr
f805439957 mathlib: make Gain and Bias inline 2023-04-26 22:33:20 +03:00
nillerusr
6b329d72ce WIP: move vmatrix functions to header and inline them 2023-04-26 19:56:15 +00:00
nillerusr
f7b85181f9 fix idiotic libs problems again 2023-04-25 01:18:15 +03:00
nillerusr
70b73ca1f4 fix musl-idiodic libsc problems 2023-04-25 00:40:23 +00:00
nillerusr
3ff7140437 WIP: musl port 2023-04-24 22:39:09 +00: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
4b7036075c unittests: fix library loading 2023-04-07 13:47:43 +03:00
nillerusr
e9636671a0 engine: fix bsp21 loading 2023-04-04 23:22:06 +03:00
nillerusr
5c8612d580 engine: again fix static prop lump version 10 loading 2023-02-17 01:41:55 +03:00
nillerusr
be67988a3a android: add extras vpk to PLATFORM path search 2023-02-16 23:15:01 +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
5e087957fc restore threadtools and vstdlib from 12716fd commit 2023-02-16 17:32:26 +03:00
nillerusr
7f0905a7f1 tier0: disable vprof by default 2023-02-11 20:32:11 +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
de1efa823a togl: fix MacOS build( fixes #187 ) 2023-02-03 02:27:22 +03:00
nillerusr
d81e6520d9 engine: update server info reply 2023-01-30 22:19:08 +03:00
nillerusr
ad63a53fd3 WIP(serverbrowser): update IServersInfo interface 2023-01-29 20:57:04 +03:00
nillerusr
f3861b8d03 WIP: initial masterserver client implementation 2023-01-28 05:29:26 +03:00
HappyDOGE
7cfb06dd5c Merge branch 'master' into win64 2023-01-23 19:16:19 +03:00
nillerusr
8f1156442e materialsystem: threaded optimizations, fix mat_queue_mode on some android devices 2023-01-14 15:53:33 +03:00
nillerusr
b610df81f7 togles: optimize PBO usage 2023-01-12 20:48:13 +03:00
exstrim401
08e33c477e Basic Steam Dick support (#166)
Without gamepadui library
2023-01-08 15:38:24 +03:00
nillerusr
d0d469c72f restore MAXSTUDIOBONES value 2022-12-18 20:24:28 +03:00
nillerusr
5ee52da628 windows(amd64): fix EHANDLE size( fixes saverestore ) 2022-12-17 12:21:22 +03:00
nillerusr
474bdff553 windows: fix 64bit build( #149 ) 2022-12-16 19:20:56 +03:00
nillerusr
d1c4af295d bsp: change MAX_MAP_DISPINFO value to 4096 2022-12-02 21:45:33 +03:00
nillerusr
9e35fc6521 engine: add bsp v21 support, add StaticPropLump_t v7-v11 support 2022-11-30 15:58:19 +03:00
nillerusr
3fec9212da add MDL version 49 support 2022-11-29 18:49:29 +03:00
exstrim401
b69cdde7be Fix macOS build (#146)
* Fix macOS build
* Fix *BSD build
* Add missing *BSD include
2022-11-27 16:48:27 +03:00
Er2
9175b29f60 BSD: Add support (#140)
* BSD: Add support

* BSD: other fixes

There is still a bug when vgui haven't got text, maybe because of resources.

Also there is bug where when trying to start new game caption names shows wrong.

* BSD: Debugging

* BSD: modify preprocessor and fix windows

* BSD: Remove debugging and fix labels in gameui

* BSD: Remove disabling some DX9 commands

* BSD: Remove -g flag
2022-11-24 22:04:29 +03:00
exstrim401
0dc822149b Fix CreateThreadPool 2022-11-20 19:32:30 +02:00