Try CS2 Subtick, Split UL/DL Ping & Server Stalls Yourself
Drag any slider or click a preset below to test asymmetric 30 ms ping (5↑/25↓ vs. 25↑/5↓), server wakeup stalls flipping winners, and same-tick Slot 0..63 tie-breakers in real time.
1. Dual-Clock Client Architecture & Subtick Wire Format#
1.1 Two Independent Margin Clocks Inside engine2.dll#
A foundational architectural change in Source 2 (compared to CS:GO's Source 1 engine) is that a CS2 client does not run on a single network clock. Instead, engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) maintains two separate closed-loop margin controllers operating in opposite directions:
- Downstream Snapshot Clock (
cl_clock_recvmargin_*):- Controls when the client polls and applies incoming server world snapshots (
CSVCMsg_PacketEntities) for entity rendering and interpolation. - Targets
cl_clock_recvmargin_desired = 5 mspluscl_clock_buffer_ticks × 15.625 ms(default0ticks for players,2ticks for spectators viacl_clock_buffer_ticks_spectator = 2). - Adjusts client render/snapshot time asymmetrically between
93%(cl_clock_recvmargin_adjust_limit_slowdown = 93, $\tau = 0.3\text{ s}$) and106%(cl_clock_recvmargin_adjust_limit_speedup = 106, $\tau = 0.6\text{ s}$) over a4.0 swindow (cl_clock_recvmargin_window = 4) so downstream jitter is absorbed rapidly (fast0.3 sslowdown when snapshots arrive late) and released cautiously (0.6 sspeedup when clean).
- Controls when the client polls and applies incoming server world snapshots (
- Upstream UserCmd Pacing Clock (
cl_tickpacket_recvmargin_*):- Controls when the client generates and transmits outgoing
CCLCMsg_MoveUDP packets so eachUserCmdarrives at the server just before the server needs to simulate that tick. - Targets
cl_tickpacket_recvmargin_desired = 5 msplusmax(sv_cq_min_queue, cl_tickpacket_desired_queuelength) × 15.625 ms(plus+1full tick15.625 msifcl_async_usercmd_send == 0at0x000611fb, or+2ticks in developer tools mode at0x000611d4). - Adjusts command generation rate symmetrically within
±5%(95%to105%,cl_tickpacket_recvmargin_adjust_limit = 5, $\tau = 0.4\text{ s}$) over a4.0 s(256-command) sliding window (cl_tickpacket_recvmargin_window = 4).
- Controls when the client generates and transmits outgoing
1.2 Client-Controlled JIT Async Send & Frame-Bound Subtick Sampling (engine2.dll & client.dll)#
Two client-side subsystems determine how accurately subtick inputs are sampled and when UDP move packets leave the machine:
- JIT Async Send Mode (
cl_async_usercmd_send = true,engine2.dll + 0x00225e40):- Once at least
6server snapshots have been received (0x00225fc0: cmp dword ptr [rax + 0x230], 6),engine2.dllentersmode = 2("CQ enabled, using client-controlled JIT async send mode",0x00226015). - Instead of waiting for a slow render frame to finish before transmitting
CCLCMsg_Move, JIT mode dispatches the preparedUserCmdpacket asynchronously right on schedule to hit the5.0 msserver margin. Disablingcl_async_usercmd_sendforcesGetDesiredRecvMargin(0x000611fb) to addcl_async_usercmd_send_recvmargin_min = 1full tick (+15.625 ms) of extra margin!
- Once at least
- Render-Frame-Bound Input Sampling &
> 256 FPSDecimation (CCSGOInput::CreateMove,client.dll + 0x00cff7a0 .. 0x00d00498):- Contrary to speculation that CS2 polls mouse/keyboard on a dedicated 1000 Hz or 8000 Hz subtick thread,
client.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/client.dll) recordsinput_historyentries ([r15 + 0xbd8],96 bytesper frame) once per rendered client frame! - Low FPS / Stutter Impact: If a frame-time spike drops render rate to
< 64 FPS(> 15.625 msframe),input_historycontains0or1sample for the entire tick, degrading subtick view-angle and lag-comp interpolation accuracy directly in proportion to frame time! - High FPS (
> 256 FPS) Quarter-Tick Decimation (0x00cff95f: cmp ebx, 4): Conversely, if a player renders at400–600 FPS(6–9frames per tick), sending every rawCSGOInputHistoryEntryPBwould overflow the UDP MTU (~1200–1300 bytes). Whenframe_count > 4(> 256 FPS),CreateMove(0x00cffa12 .. 0x00cffc7f) decimatesinput_historydown to quarter-tick (0.25=3.906 ms) anchor frames PLUS explicitly pinnedattack1_start_history_indexandattack2_start_history_indexframes, and stripssv_interp0/sv_interp1/cl_interpfrom non-attack frames (0x00cffe32..0x00cffe50) so click frames retain 100% sub-millisecond precision without bloating packet size!
- Contrary to speculation that CS2 polls mouse/keyboard on a dedicated 1000 Hz or 8000 Hz subtick thread,
1.3 Exact Subtick Protobuf Payload (CCLCMsg_Move $\rightarrow$ CSGOUserCmdPB)#
The server still steps the game world at a fixed 64 Hz (15.625 ms per tick). Subtick does not send packets on every mouse movement or run extra server ticks mid-interval. Instead, once per ~15.625 ms client command tick, the client bundles a CSGOUserCmdPB inside CCLCMsg_Move (clc_Move = 20, containing serialized bytes data and uint32 last_command_number):
CBaseUserCmdPB(usercmd.proto):client_tick(field 2) &legacy_command_number(field 1): Monotonic client command sequence.prediction_offset_ticks_x256(field 17): Fixed-point Q8 (× 256) offset between client predicted tick state and the latest acknowledged server snapshot.buttons_pb(CInButtonStatePB, field 3): Three 64-bit bitmasks:buttonstate1: Buttons currently held down at end of tick.buttonstate2: Buttons pressed (rising edge) during this tick.buttonstate3: Buttons released (falling edge) during this tick.
repeated CSubtickMoveStep subtick_moves(field 18): Ordered sub-tick movement transitions captured at render-frame / raw-input resolution:uint64 button,bool pressedfloat when$\in [0.0, 1.0)$: Exact normalized time fraction inside the15.625 mstick (when = 0.0is tick start;when = 0.5is+7.8125 ms).analog_forward_delta,analog_left_delta,pitch_delta,yaw_delta: Continuous WASD/analog/view deltas across the sub-step.
CSGOUserCmdPB(cs_usercmd.proto):repeated CSGOInputHistoryEntryPB input_history(field 2): Per-render-frame input samples containing:CMsgQAngle view_angles(field 2): Exact crosshair angles at that render frame.player_tick_count(field 6) &player_tick_fraction(field 7): Exact shooter simulation timestamp[tick + frac].sv_interp0(field 13) &sv_interp1(field 14): TwoCSGOInterpolationInfoPBstructs (src_tick,dst_tick,frac) recording the exact two server snapshot brackets being interpolated on the shooter's client.cl_interp(field 12):CSGOInterpolationInfoPB_CL { float frac }— the exact sub-frame blend weight betweensv_interp0andsv_interp1at that render frame.- Diagnostic/verification fields (
frame_number = 64,target_ent_index = 65,shoot_position = 66,target_head_pos_check = 67).
attack1_start_history_index(field 6),attack2_start_history_index(field 7): Indices intoinput_historypinpointing the exact render frame where primary (Mouse1) or secondary (Mouse2) fire began (-1if not fired).is_predicting_body_shot_fx(11),is_predicting_head_shot_fx(12),is_predicting_kill_ragdolls(13): Flags telling the server whether the client already played predicted hit/kill effects locally.
2. Server Packet Intake, sv_clockcorrection_msecs Myth & DOA Stripping#
🔍 Click to Zoom 220-DPI (3300×2090)
2.1 Debunking the sv_clockcorrection_msecs = 30 Speculation (server.dll + 0x00b64080)#
Since CS2's launch, one of the most widespread community theories has been that sv_clockcorrection_msecs (which still exists in DumpSource2/convars.txt with default value 30) forces a 30 ms server buffer or grants 30 ms of artificial clock-drift leeway to high-ping players.
Disassembling CBasePlayerController::OnSimulateUserCommands in server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) (RVA 0x00b64080 .. 0x00b647eb) and CCommandQueue::OnSimulateUserCommands (0x00ecc6e0) disproves this completely:
- At
0x00b64104,CBasePlayerController::OnSimulateUserCommandscallsm_pCommandQueue->OnSimulateUserCommands()(0x00ecc6e0) first. - Inside
0x00ecc6e0(0x00ecc6f5..0x00ecc720), the server checks two conditions:cq_enable == true(adevelopmentonly | replicated | defensiveConVar locked totruein retail CS2), and!(pController->m_fFlags & FL_FAKECLIENT)(0x100, i.e., the player is a real human client, not a server AI bot).
- For every human player,
CCommandQueue::OnSimulateUserCommandsexecutes the Command Queue logic and returnsal = 1(true). - Back in
0x00b64109, the instructiontest al, al; jne 0xb647d9jumps straight to the function epilogue, completely skipping0x00b64134: call 0x00b43d00(AdjustPlayerTimeBase, the sole consumer ofsv_clockcorrection_msecs)!sv_clockcorrection_msecsonly runs for bots or ifcq_enablewere disabled in an internal developer build.
2.2 Engine Intake (CServerSideClient::ProcessMove, engine2.dll + 0x000b9540)#
When a client UDP packet arrives on the server:
- Anti-Batching Check:
CServerSideClient::ProcessMoveincrements[this + 0xee8](count ofCCLCMsg_Movemessages inside the current UDP packet). If[this + 0xee8] > 1, the engine immediately rejects the packet and disconnects the client (NETWORK_DISCONNECT_USERCMD). Thus, a client cannot stuff multiple move messages into one UDP datagram. - Fractional
net_marginMeasurement: The engine queries the exact real-time remaining duration (net_margin, in seconds) until the next scheduled 64 Hz server simulation tick (15.625 mscadence):- If the packet arrived
4.2 msbefore the server wakes up to run Tick $T$,net_margin = +0.0042f. - If the packet arrived
1.1 msafter Tick $T$ already started,net_margin = -0.0011f(missed deadline!).
- If the packet arrived
- Dispatch to Game DLL: The engine scopes
gpGlobals->frametime = 0.015625fand callsCBasePlayerController::ProcessUsercmds(server.dll + 0x00b65d60).
2.3 Server Intake (CBasePlayerController::ProcessUsercmds, server.dll + 0x00b65d60)#
Inside 0x00b65d60, every incoming packet passes through four exact stages:
Stage A: Immediate Dead-on-Arrival (DOA) Button Stripping (0x00b65ecb .. 0x00b65f05)
Before queuing a single command, the server resolves m_hPawn ([rbx + 0x4e0]) and invokes pPawn->IsAlive() (vtable + 0xc28 at 0x00b65ecb).
- If
IsAlive()returns0(false— meaning an enemy already killed this player on an earlier server tick!), the server setsbDeadOnArrival = 1(dil = 1) and iterates over everyCUserCmdin the packet (stride = 0x98), callingClearButtonEdges(0x00687cb0):// Reconstructed from server.dll + 0x00687cb0 void ClearButtonEdges(CInButtonState* buttons) { buttons->buttonstate2 = 0; // Zero all RISING edges (pressed this tick, e.g. IN_ATTACK!) buttons->buttonstate3 = 0; // Zero all FALLING edges (released this tick) // Marked dirty in protobuf has_bits if backed by CInButtonStatePB } - Because weapon firing triggers on attack transitions/history tied to an alive pawn, any shot predicted on the player's own screen whose UDP packet reaches the server even
0.1 msafter the player's server death is stripped right here on intake (DOA).
Stage B: Total Receive Margin Calculation (0x00b65fa6 .. 0x00b65fd3)
For each UserCmd in the packet (remembering that a CCLCMsg_Move packet normally carries the newest UserCmd plus backup copies of recent commands up to cl_usercmd_max_per_movemsg = 4 to survive single-packet loss):
- Let
cmd_num(ebp) be[pCmd + 0x8], andlast_executed(edx) bem_pCommandQueue->GetLastCommandExecuted()(vtable + 0x20). - The server computes the queue depth $q$ (
r15d) ahead of this command:$$q = \min\bigl(\text{cmd\_num} - \text{last\_executed} - 1,\ \text{max\_backlog}\bigr)$$ - If
net_margin < 0.0f(comiss xmm8, xmm7wherexmm8 = 0.0f), total margin is set to-1e30f(0xf149f2ca, signalingLATE). - Otherwise, total margin in seconds (
xmm6) is:$$m_{\text{total}} = m_{\text{net}} + q \times 0.015625$$Logged whenRecvMarginchannel is enabled (0x00b660aa):"%sRecv usercmd %d. Margin:%5.1fms net +%2d queue =%5.1f total\n"
Stage C: Q12 Fixed-Point Encoding (EncodeCmdRecvStatus, 0x00b4c1f0)
For the final (newest) UserCmd in the packet (0x00b66155..0x00b66175), if net_margin >= 0, the server encodes $m_{\text{total}}$ via 0x00b4c1f0 into a 16-Entry ring buffer ([rbx + rdi*8 + 0x654]):
- Clamps $m_{\text{total}}$ to $[-15.999756,\ +15.999756]\text{ s}$.
- Multiplies by
4096.0f($2^{12}$ ticks per second $\Rightarrow$0.24414 msper LSB), rounds to nearest signed integer, and transmits the packed array back to the client inCSVCMsg_PacketEntities.cmd_recv_status(field 22). - Special out-of-band sentinel integers (
> 65535) encode non-margin states:0x10040: Skipped/gap command slot (packet loss before backfill).0x10080: Non-terminal command in a multi-commandCCLCMsg_Movebundle.0x10081: Late command (net_margin < 0).
3. How Ping & Jitter Affect Subtick Margin (10 ms vs. 30 ms Deep Dive)#
engine2.dll + 0x00061380)flowchart TD
A["Server Sends CSVCMsg_PacketEntities"] --> B["Client Unpacks cmd_recv_status (÷ 4096.0s)"]
B --> C["Sliding 4.0s Window (256 UserCmds, min 10 samples)"]
C --> D["Find Worst Single Sample: M_min = min(margin[0..255])"]
D --> E["Target M_desired = 5.0 ms + 15.625 ms * buffer_ticks"]
E --> F{"Compare M_min vs M_desired"}
F -- "M_min < 5.0 ms (Spike / Late!)" --> G["Speed Up Cmd Clock (up to +5%, τ = 0.4s)"]
F -- "M_min > 5.0 ms (Excess Margin)" --> H["Slow Down Cmd Clock (down to -5%, τ = 0.4s)"]
G --> I["Steady State: Worst Spike = 5.0 ms | Median = 5.0 ms + J_peak"]
H --> I3.1 Disassembling the Client Pacing Loop (engine2.dll + 0x000611a0 & 0x00061380)#
Let's trace the exact floating-point math in engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll):
- Target Desired Margin (
0x000611a0):$$M_{\text{desired}} = 0.001 \times \text{cl\_tickpacket\_recvmargin\_desired} + 0.015625 \times \max\bigl(\text{sv\_cq\_min\_queue},\ \text{cl\_tickpacket\_desired\_queuelength}\bigr)$$With standard settings (cl_tickpacket_recvmargin_desired = 5,cl_net_buffer_ticks = 0$\Rightarrow$cl_tickpacket_desired_queuelength = 0,sv_cq_min_queue = 0):$$M_{\text{desired}} = 5.0\text{ ms}$$Crucial Proof: There is no RTT / ping term anywhere inGetDesiredRecvMarginorUpdateUserCmdRecvMarginPacing. - Sliding-Window P0 Minimum Projection (
0x00061500 .. 0x000615d2):- Over the past
cl_tickpacket_recvmargin_window = 4.0 s(256commands), for each recorded command $k$ with server-reported margin $m_k$, the client adjusts $m_k$ for any clock-pacing shifts already applied since command $k$ was sent, yielding the projected margin $\hat{m}_k$. - Instruction
0x000615be: minss xmm6, xmm0tracks the strict minimum (0th percentile,P0) across all 256 samples:$$M_{\min} = \min_{k \in [t - 4\text{s},\, t]} \hat{m}_k$$ - It caps maximum bloat adjustment via
cq_buffer_bloat_msecs_max = 150 ms(0x00061634) and drives $M_{\min} \to M_{\text{desired}}$ (5.0 ms) using first-order exponential smoothing (V_expf(-dt / 0.4f)) clamped to[0.95, 1.05](±5%command clock dilation).
- Over the past
3.2 Comparing 10 ms Ping vs. 30 ms Ping: Clean Fiber vs. Real-World Jitter#
Why, then, do players consistently observe and feel margin differences between 10 ms and 30+ ms connections? Because two distinct physical effects stack on top of each other:
Effect 1: Pure Propagation Lead Time (Even with 0 ms Jitter)
Suppose Player A (10 ms RTT $\Rightarrow$ 5 ms one-way upstream delay) and Player B (30 ms RTT $\Rightarrow$ 15 ms one-way upstream delay) both have rock-solid fiber with ±1 ms jitter:
- Both players' server receive margins converge to the same
~5.0–6.0 ms(queue = 0). Neither player has extra commands sitting in the server queue! - However, to arrive
5.0 msbefore Server Tick $T$, Player A's client must generate and send Tick $T$'sUserCmd10.0 msbefore Server Tick $T$ executes (5 msmargin +5 msflight time), whereas Player B's client must generate and send Tick $T$'sUserCmd20.0 msbefore Server Tick $T$ executes (5 msmargin +15 msflight time)! - Therefore, at any given instant of real wall-clock time $t_{\text{real}}$, Player B's client command number is running
10 msfurther ahead of the server than Player A's, and any mouse click Player B makes takes10 mslonger to reach a server tick execution boundary!
Effect 2: The 4-Second P0 Jitter Amplifier (Why 30–60 ms Routes Gain Extra Queue Margin)
Higher ping routes traverse more ISP hops and peering links, where upstream micro-bursts (8–18 ms queuing spikes once every few seconds) are common—and Wi-Fi / cable DOCSIS connections routinely exhibit 10–20 ms upstream jitter spikes.
- Because
0x000615bepins the single worst packet in every 256-packet (4.0 s) window to+5.0 ms:- If a
10 msfiber player has0.8 mspeak 4s jitter, their median total margin is5.0 + 0.8 = 5.8 ms(queue = 0). - If a
30 mscable/multi-hop player has even one12.0 msupstream delay spike every 4 seconds, the client speeds up its command clock (up to +5%) until that12.0 mslate packet lands at+5.0 ms. Consequently, the other 255 normal packets in that 4-second window arrive17.0 msearly:$$m_{\text{total}} = 1.375\text{ ms net} + 1 \times 15.625\text{ ms queue} = 17.0\text{ ms total}$$ - That single spike silently pushes the
30 msplayer intoqueue = 1(an extra buffered server tick), increasing their total input-to-server-execution latency from21.0 ms(clean 30ms) to32.0 ms—more than 3× the10.8 msinput-to-execution latency of the10 msfiber player!
- If a
3.3 Server Command Queue Starvation & Bloat Mechanics (server.dll + 0x00ecc6e0)#
What happens when network jitter changes faster than the ±5% client clock controller can adapt?
- Queue Starvation (
queue == 0when Tick $T$ runs,0x00ecc420):- If a sudden upstream lag spike exceeds the player's current margin ($J > M_{\text{current}}$), the player's
CPlayerCommandQueueis empty when Tick $T$ executes. - Up to
cq_max_starved_substitute_commands = 4consecutive ticks (62.5 ms),GenerateStarvedSubstituteCommand(0x00ecc420$\rightarrow$0x00b4eb70) synthesizes a substituteUserCmdcloned from the last executed command:- Preserves analog velocity and view angles so the player doesn't freeze mid-stride for observers.
- Calls
ClearButtonEdges(0x00687cb0), emptiessubtick_moves, and setsattack1_start_history_index = -1andattack2_start_history_index = -1(substitute ticks can NEVER fire a weapon or start a jump).
- Late Command Condensation (
0x00ecd083 .. 0x00ecd2aa): When the delayed real packet finally arrives (provided it is< 60ticks old and the player is still alive), the server catches up by settingcmd_flags |= 0x40, condensing missed button-press edges onto the next simulated tick—meaning your shot fires 1+ ticks late (with potentially mismatched movement/recoil state) rather than on Tick $T$.
- If a sudden upstream lag spike exceeds the player's current margin ($J > M_{\text{current}}$), the player's
- Queue Bloat Trimming (
total_margin > 150 ms,0x00ecc933):- If a network stall flushes a burst of
> 10commands (round(150 ms × 64 / 1000)viacq_buffer_bloat_msecs_max = 150), the server trims the queue down tomin_queue + sv_cq_trim_bloat_remainder (1), discarding intermediate commands and incrementingcq_discarded_command_ticks.
- If a network stall flushes a burst of
3.4 Asymmetric Upload vs. Download Latency & Dual-Jitter Effects (0x00ece821 & 0x00ed6b37)#
Scoreboard ping only shows round-trip time ($\text{RTT} = \text{OWD}_{\uparrow} + \text{OWD}_{\downarrow}$), hiding upload/download routing asymmetry (common on DOCSIS cable, cellular, and asymmetric BGP return paths). Because CS2's dual clocks decouple upload from download, two players with the exact same 30 ms RTT experience opposite combat mechanics:
- Upload Latency ($\text{OWD}_{\uparrow}$) + Upload
P0Jitter ($J_{\uparrow, P0}$) Govern Shot Execution &DOA:- Outgoing
UserCmdlead time is strictly $\Delta t_{\text{cmd}} = \text{OWD}_{\uparrow} + 5.0\text{ ms} + J_{\uparrow, P0}$ (engine2.dll + 0x000615be, unfiltered 0th-percentileminss). - A
30 msRTT player with5 msUpload /25 msDownload lands shots on server ticks just as fast as a10 msLAN/fiber player, easily beating a30 msRTT opponent with25 msUpload /5 msDownload (20 msfaster packet arrival $\Rightarrow$ 1–2 ticks earlier execution, stripping the25 ms-upload playerDOA)!
- Outgoing
- Download Latency ($\text{OWD}_{\downarrow}$) + Download
P3.125Jitter ($J_{\downarrow, P3.125}$) Govern Sight Delay & LagComp Bracket Validation:- Incoming snapshot/render age is $\Delta t_{\text{render}} = \text{OWD}_{\downarrow} + 5.0\text{ ms} + J_{\downarrow, P3.125} + T_{\text{interp}}$ (
engine2.dll + 0x00068780, sorted 3.125th-percentilesar eax, 5). High Download Latency makes you see peekers later (worse Peeker's Advantage against you) and die deeper behind walls when un-peeking. - Lag-Compensation Bracket Override (
server.dll + 0x00ece821 .. 0x00ed6b6e): InComputeTargetLagCompInterpBrackets/StartLagCompensation, the server queriesINetChannelInfoengine_latency(vtable + 0x50) andnet_latency(vtable + 0x58), checking that the shooter'ssv_interp0 / sv_interp1 / cl_interpsits within±1.0tick (15.625 ms) ofsv_tick - engine_latency_ticks - (player_lerp_ticks + 1.0). Because client-localcl_clock_recvmargininflation from Download Jitter is not part of wireRTT, sustained Download Jitter> 15.625 mstrips0x00ed6b37("sv: Lag comp - full interp info doesn't match target time, using target time instead"), overriding your sub-frame hitbox brackets on moving targets!
- Incoming snapshot/render age is $\Delta t_{\text{render}} = \text{OWD}_{\downarrow} + 5.0\text{ ms} + J_{\downarrow, P3.125} + T_{\text{interp}}$ (
4. Server Subtick Simulation, 32-Slot Eye Interpolation & 2-Bracket Lag Comp#
When Tick $T$ pops a valid CSGOUserCmd for an alive player (CPlayer_MovementServices::OnPawnProcessCommand, server.dll + 0x00c77eb0), the server executes three subtick-aware subsystems in exact sequence:
4.1 Subtick Movement Physics Slicing (CPlayer_MovementServices::DoMovement, 0x00c6c180)#
Instead of integrating movement once with dt = 0.015625 s, DoMovement splits the tick across all N entries in subtick_moves (plus any forced transitions in m_arrForceSubtickMoveWhen[4]):
- Initializes
prev_when = 0.0f. - For each
step$i = 0 \dots N-1$ withwhen$w_i \in [0.0, 1.0]$:- Computes sub-slice frame time:$$\Delta t_i = (w_i - \text{prev\_when}) \times 0.015625\text{ s}$$
- Temporarily overrides
gpGlobals->frametime = dt_iandgpGlobals->curtime = tick_start + prev_when * 0.015625f. - Applies the exact button state transition (
pressed/released) and, becausesv_subtick_movement_view_angles = true, rotates movement wish-vectors using the sub-steppitch_delta/yaw_delta. - Executes full Source 2 humanoid physics (
WalkMove/AirMove/Friction/CategorizePosition) for $\Delta t_i$. - Sets
prev_when = w_i.
- Computes sub-slice frame time:
- Runs one final movement slice for the remainder $(1.0 - \text{prev\_when}) \times 0.015625\text{ s}$ and restores
gpGlobals.
Why This Matters (Counter-Strafe Friction & Jump Spam Penalty):
- If you release
Aand tapDto counter-strafe atwhen = 0.25(3.9 msinto the tick) and clickMouse1atwhen = 0.85(13.3 msinto the tick), your pawn has already decelerated for9.4 msinside that same tick, tracked across tick boundaries viam_bUseFrictionStashedSpeedandm_flUseFrictionStashedSpeedUntilFrac. - Meanwhile, subtick jumping (
CCSPlayerModernJump,sv_jump_precision_enable = true,m_flLastJumpFrac6-bit fraction) enforcessv_jump_spam_penalty_time = 0.015625(server.dll + 0x000c97d0: "For subtick jumps, if this much time or less has elapsed since the last time the user has pressed the jump key, pretend they hadn't pressed it"), throttling scroll-wheel bunnyhop inputs spaced<= 15.625 msapart!
4.2 Server-Authoritative Shoot Position, Subtick RPM & Spread Re-Rolls (0x009f5c80 & 0x00b05090)#
After DoMovement finishes, CBasePlayerPawn::PostThink (0x00cff5b0) invokes ItemPostFrame() $\rightarrow$ CSBaseGunFire (0x009f5c80):
- Exact Subtick Weapon Fire-Rate (
GetWeaponAttackTime,0x009f6b20 .. 0x009f6d86):- On initial trigger press (
attack1_start_history_index >= 0),CSBaseGunFireuses mode0("exact"attack time at0x009f5f00). - Crucially, weapon cooldowns do not round to whole 64 Hz ticks!
[rdi + 0xeb0]and[rdi + 0xeb4]storem_nNextPrimaryAttackTick(int32) +m_flNextPrimaryAttackTickRatio(float32) (and similarlym_nPostponeFireReadyTicks+m_flPostponeFireReadyFracfor the R8 Revolver at0x00a0d13d..0x00a0d191). Thus, a600 RPMAK-47 (0.100 s=6.40ticks/shot) advances its subtick fire ratio continuously (0.40 -> 0.80 -> 0.20 -> 0.60 -> 0.00) across held full-auto sprays, using mode1("interpolated"at0x009f5f0c) to interpolate crosshair angles acrossinput_historyat each exact fractional bullet timestamp (falling back to"last history"/"no history"only if low client FPS failed to supply bracketing frames).
- On initial trigger press (
- Server Eye-Origin Ring Buffer (
0x00b05090 .. 0x00b054d8):- Notice that
CSGOInputHistoryEntryPBcontains a client-sentshoot_positionfield (tag 66), which the server NEVER uses for actual bullet ray origins (preventing teleport/wallbang origin cheats; inFX_FireBulletsat0x002a29ff, it is only compared when developer debug ConVars are enabled:"Server old: %f %f new: %f %f"). - Instead,
CCSPlayer_WeaponServicesrecords a 32-entry circular history buffer of server-computed eye positions ([this + 0xe8 .. 0x368], indexed modulo 32 viaand ecx, 0x8000001f, 20 bytes per entry:int32 tick,float32 frac,Vector eyePos). GetInterpolatedShootPositionlocates the two bracketing server eye-position samples $E_0, E_1$ around[player_tick_count + player_tick_fraction]with interpolation weight $\alpha \in [0, 1]$ ([rsp + 0x158]) and computes (0x00b05326..0x00b05377):$$\vec{P}_{\text{shoot}} = (1 - \alpha)\,\vec{E}_0 + \alpha\,\vec{E}_1$$
- Notice that
- Spread Seed Sync,
suspicious_hit_strategySHA1 Re-Roll & Client Hit-Prediction Desync (0x000565f0&0x002a30b0):- Inside
FX_FireBullets(0x002a30b0), normal random bullet inaccuracy is decoupled from client prediction viasv_usercmd_custom_random_seed(m_bFireBulletsSeedSynchronized), AND if anti-tamper heuristics flag an anomalous hit, ConVarsuspicious_hit_strategy(0x000565f0: "0: Nothing. 1: Skip the bullet. 2: Skip the bullet and re-roll a new bullet") hashesPlat_FloatTime()+RandomInt()through SHA1 to re-roll bullet spread server-side! - Even without spread randomness, client hit-FX prediction (
cl_predict_body_shot_fx/cl_predict_head_shot_fx, disabled by default) can false-positive ("fake dink") whenever an unacknowledged server velocity tag (m_flVelocityModifier),m_unpredictableBaseAngleaimpunch, orDOAdeath occurs in the1 × RTTwindow before the server simulates the shot.
- Inside
4.3 Two-Bracket Sub-Frame Lag Compensation (StartLagCompensation, 0x00ed65d0)#
Before FX_FireBullets (0x002a28f0) casts its hitscan ray, 0x002a2e49 calls CLagCompensationManager::StartLagCompensation (0x00ed65d0) with LAG_COMPENSATE_HITBOXES_ALONG_RAY (2) and weapon m_flRange:
- Anti-Exploit Timestamp Validation (
ComputeTargetLagCompInterpBrackets,0x00ece720&0x00ed6b37):- Computes server-expected target render time:
cmd_time - (player_lerp_ticks + 1.0). - Checks that the client's reported
sv_interp0,sv_interp1, andcl_interpfall within±1.0tick (15.625 ms) of server-expected interpolation time (0x00ed6b37). If outside tolerance, the server overrides the client's brackets! - Clamps total rewind age against
sv_maxunlag(1.0 sengine ceiling;sv_maxunlag_playeroptional human-pawn override).
- Computes server-expected target render time:
- Exact Sub-Frame Pose Reconstruction:
- In CS:GO, lag compensation rewound hitboxes to a single discrete tick (or simple 2-tick lerp). In CS2, because client rendering blends across snapshot arrival jitter,
StartLagCompensationreconstructs two full AnimGraph 2 skeleton poses fromCLagCompensationManager's bone/pose history:$$\text{Pose}_0 = \text{Blend}\bigl(\text{Snapshot}[\text{sv0.src}],\ \text{Snapshot}[\text{sv0.dst}],\ \text{sv0.frac}\bigr)$$$$\text{Pose}_1 = \text{Blend}\bigl(\text{Snapshot}[\text{sv1.src}],\ \text{Snapshot}[\text{sv1.dst}],\ \text{sv1.frac}\bigr)$$ - Finally, it blends $\text{Pose}_0$ and $\text{Pose}_1$ by
cl_interp.fracso the server's lag-compensated hitboxes match the exact sub-frame pixel pose rendered on the shooter's monitor when they clicked!
- In CS:GO, lag compensation rewound hitboxes to a single discrete tick (or simple 2-tick lerp). In CS2, because client rendering blends across snapshot arrival jitter,
5. Duel Resolution Proof: Who Gets The Kill & Why Shots Disappear#
🔍 Click to Zoom 220-DPI (3300×2244)
When two players fire lethal shots at nearly the same instant, CS2 resolves the duel through two completely different rules depending on whether their UserCmd packets land on different server ticks or the exact same server tick.
5.1 Scenario A: Different Server Ticks (Tick T vs. Tick T+1) — Lower Ping / Lower Jitter Wins#
Suppose Server Tick $T-1$ ran at $t = 0.0\text{ ms}$ and Server Tick $T$'s deadline is $t = 15.625\text{ ms}$:
- Player B (
30 msping $\Rightarrow$15.0 msOWD) clicks Mouse1 first in real physical time at $t = 2.0\text{ ms}$. Adding15.0 msone-way transit (even assuming immediate tick-end dispatch), Player B's UDP packet reaches the server at $t = 17.0\text{ ms}$—missing Tick $T$ by1.375 ms, placing it on Tick $T+1$ (31.25 ms). - Player A (
10 msping $\Rightarrow$5.0 msOWD) clicks Mouse16.0 mslater in real physical time at $t = 8.0\text{ ms}$. Adding5.0 msone-way transit, Player A's UDP packet reaches the server at $t = 13.0\text{ ms}$—arriving with+2.625 msmargin before Tick $T$! - Exact Binary Execution:
- At $t = 15.625\text{ ms}$ (Tick $T$), Player A's
UserCmdexecutesFX_FireBullets$\rightarrow$FireBullet$\rightarrow$CBaseEntity::TakeDamage(0x00a767aa), reducing Player B's health to0(IsAlive() == false). - At $t = 17.0\text{ ms}$, Player B's UDP packet arrives in
CBasePlayerController::ProcessUsercmds(0x00b65d60). At0x00b65ecb,pPawn->IsAlive()returns0, and0x00b65ef3callsClearButtonEdges(0x00687cb0), wiping Player B'sIN_ATTACKpress (DOA). - Result: Even though Player B pulled the trigger
6.0 msearlier in reality, Player A gets the kill cleanly with 100 HP, while Player B sees/hears a local gunshot that never existed on the server!
- At $t = 15.625\text{ ms}$ (Tick $T$), Player A's
5.2 Scenario B: The Same-Tick Subtick Paradox (Tick T vs. Tick T) — Player Slot Index (0..63) Wins!#
Now suppose both Player A's and Player B's CCLCMsg_Move packets arrive on time before Server Tick $T$ (15.625 ms):
- Player B occupies Server Slot
5and clicked atwhen = 0.10(1.56 msinto Tick $T$). - Player A occupies Server Slot
0and clicked atwhen = 0.90(14.06 msinto Tick $T$ —12.5 mslater inside the exact same tick!).
Intuitively, players assume "subtick" means the server compares when = 0.10 against when = 0.90 and lets Player B shoot first. The compiled server.dll binary does NOT do this.
In GameFrame / SimulateEntities (server.dll + 0x005b2d89 .. 0x005b2e28), the server executes all player controllers in a simple ascending for loop from slot = 0 to gpGlobals->maxClients - 1:
; server.dll + 0x005b2d89 (SimulateEntities player controller loop)
0x005b2d90: xor r15d, r15d ; slot = 0
0x005b2d93: mov ebx, r15d
...
0x005b2df0: cmp ebx, edi ; while (slot < gpGlobals->maxClients)
0x005b2df2: je 0x5b2e28
0x005b2df4: mov rax, qword ptr [rsi]
0x005b2df7: mov rcx, rsi ; rcx = CBasePlayerController* at `slot`
0x005b2dfa: call qword ptr [rax + 0x508] ; -> CBasePlayerController::SimulateUserCommands (0x00b64bb0)
...
0x005b2e11: inc ebx ; slot++
0x005b2e19: call 0xcb4900 ; UTIL_ControllerBySlot(slot)
0x005b2e26: jmp 0x5b2df0Trace what happens inside that single microsecond CPU loop on Tick $T$:
ebx = 0(Player A, Slot 0,when = 0.90) runs FIRST:SimulateUserCommands$\rightarrow$DoMovement$\rightarrow$CBasePlayerPawn::PostThink(0x00cff5b0).- At
0x00cff6af,pPawn->IsAlive()returns1. At0x00cff721,ItemPostFrame()fires Player A's rifle (FX_FireBullets$\rightarrow$FireBullet). - At
0x00a767aainsideFireBullet,victim->TakeDamage()executes synchronously, killing Player B (m_lifeState = LIFE_DYING,IsAlive() == false) immediately during Slot 0's turn!
ebx = 5(Player B, Slot 5,when = 0.10) runs ~50 microseconds LATER in the same loop:- Player B's
DoMovementruns, and control entersCBasePlayerPawn::PostThink(0x00cff5b0). - At
0x00cff6af,pPawn->IsAlive()(call qword ptr [rax + 0x550]) returns0(false)! - At
0x00cff716..0x00cff719:test bpl, bpl; je 0xcff729— the CPU jumps directly overcall qword ptr [rax + 0xbe0](ItemPostFrame())! - Result: Player B's
when = 0.10shot never fires, and Slot 0 (Player A,when = 0.90) wins the duel despite clicking12.5 mslater inside the exact same tick!
- Player B's
5.3 Scenario C: Peeker's Advantage & Dying Behind Cover#
Why does a 60–80 ms peeker still feel so fast against a stationary angle-holder, and why do you still die after ducking behind a wall?
- Peeker's Advantage Math: When a moving Peeker rounds a corner at $t_0$, they immediately see the stationary Holder's position on their screen. The Holder cannot see the Peeker emerge until:$$T_{\text{peek\_delay}} = \text{OWD}_{\text{peeker}}^{\uparrow} + M_{\text{peeker}} + Q_{\text{tick}} + \text{OWD}_{\text{holder}}^{\downarrow} + T_{\text{holder\_interp}}$$For a
60 msPeeker (30 msOWD +15 msjitter-inflated margin) peeking a20 msHolder (10 msOWD +~15.6 mssnapshot/render delay +7.8 msaverage tick quantization), the Peeker sees and aims at the Holder~78 msbefore the Peeker appears on the Holder's monitor! - Dying Behind Cover ("Backtrack" Within
sv_maxunlag): Conversely, when you un-peek behind a brick wall at $t_0$, a70 msopponent's screen is rendering snapshots from~50–65 msago—where your head was still completely exposed! When they click your exposed head atwhen = 0.62,StartLagCompensation(0x00ed65d0) rewinds your AnimGraph 2 skeleton to their exactsv_interp0/sv_interp1/cl_interpframe (55 msago), confirms the headshot in open air, and kills you~35 msafter you already reached safety on your own screen.
5.4 Scenario D: Poor or Fluctuating Server Performance (networksystem.dll + 0x000c9320 & engine2.dll + 0x001dc880)#
What happens when the server itself suffers CPU spikes or fluctuating tick frame times (e.g., 22–35 ms frame stalls from physics, grenades, or shared-VM CPU steal instead of steady 15.625 ms)? Disassembling CNetworkServerService (engine2.dll + 0x001dc8d9 .. 0x001dcc74), AdvanceTime (0x00226500), and CNetChan::ProcessPacketHeaderAndPayload (networksystem.dll + 0x000c94ca .. 0x000c954f) proves three direct duel-altering effects:
- Late-Wakeup Socket Sweep — Flipping a Cross-Tick
DOALoss Into a Same-Tick Slot-Order Win:- On every server tick,
CNetworkServerServicerunsOnServerPollNetworking(0x001de120) $\rightarrow$OnServerProcessNetworking(0x001de230) at the wall-clock instant the stalled server thread actually wakes up, right beforeOnServerBeginSimulate(0x001de340). - Meanwhile,
SteamNetworkingSockets's background thread stamped[pkt + 0x60] = usec_packet_recvwhen each UDP datagram hit the NIC, andnetworksystem.dll(0x000c9515 .. 0x000c9539) comparesusec_packet_recvagainst the scheduled tick deadline (usec_tick_deadline):; networksystem.dll + 0x000c9515 .. 0x000c954a 0x000c9515: sub rdi, rcx ; rdi = usec_tick_deadline - usec_packet_recv 0x000c951c: lea rax, [rdi + 0x1388] ; +5000 usec (+5.0 ms) 0x000c9523: cmp rax, 0x19a28 ; valid window: [-5.0 ms, +100.0 ms] 0x000c9529: ja 0xc954f ; if < -5.0 ms: xmm8 = -1.0f (0x10081 LATE!) 0x000c9532: cmp rdi, r8 ; r8 = 1 usec 0x000c9539: cmovl rdi, r8 ; [-5.0 ms, 0) LATE AMNESTY -> clamped to +1 usec! - Duel Reversal Proof: Suppose Tick $T$ (
Command #1) is scheduled for15.625 ms, Player A (10 msRTT,Slot 2) arrives cleanly at9.625 ms, and Player B (18 msRTT =9 msUL,Slot 1, faster0.5 msreaction $\Rightarrow$ alsoCommand #1!) suffers an unbuffered+8.5 msupload spike on that shot packet, arriving at18.125 ms(2.5 mspast15.625 ms). On a healthy server, Player B's queue starves on Tick $T$, Player A kills Player B on Tick $T$, and Player B's18.125 mspacket is strippedDOA. If a server CPU spike delays Tick $T$'s wakeup by+5.0 ms(waking at20.625 ms),OnServerPollNetworkingsweeps Player B's lateCommand #1onto Tick $T$, andSlot 1(Player B) executes beforeSlot 2(Player A)—completely reversing who wins the gunfight!
- On every server tick,
- Post-Stall Multi-Tick Catch-Up Burst Starvation (
engine2.dll + 0x0022668c):- After a
>= 31.25 ms(2+tick) server stall finishes,AdvanceTime(0x0022668c,engine_allow_multiple_ticks_per_frame = true, capped byengine_max_ticks_to_simulate) runs multiple server ticks back-to-back in< 0.2 msof real time to catch up. - Because zero network transit time elapses between the back-to-back catch-up ticks, any tightly paced
q = 0player whose nextUserCmdhasn't arrived yet hits Queue Starvation on the catch-up tick (GenerateStarvedSubstituteCommand,server.dll + 0x00ecc420), forcingattack1_start_history_index = -1(gun cannot fire until the next tick), whereas a jitter-bufferedq >= 1opponent already has a command queued and fires immediately!
- After a
- Global Margin Contagion & Peeker's Advantage Inflation (
engine2.dll + 0x00065dd4):- Every
CNETMsg_Tickbroadcasts the server'shost_unfiltered_frametime([r14 + 0xc], checked against0.015625fat0x00065dda:"Server tick %d was slow (%.1fms)..."). - Fluctuating server frame times simultaneously (a) feed near-zero
+1 µsamnesty margins or0x10081 LATEflags into all 10 players'cmd_recv_status, tricking everyone'sP0(minss) upstream controller into adding extra input delay, and (b) once slow ticks exceed3.125%(P3.125), push every defender's downstreamcl_clock_recvmarginbackward (93%slowdown, $\tau = 0.3\text{ s}$)—directly adding+10–20 msof extra Peeker's Advantage and behind-wall deaths!
- Every
6. Multi-Version Evolution: Pre-AnimGraph 2 vs. April/May 2026 vs. Nov 2026 (v1.42.0.1)#
🔍 Click to Zoom 220-DPI (3300×1892)
Diffing SteamDatabase/GameTracking-CS2 across 8 builds from 2024 to November 2026 reveals the exact engineering changes across the AnimGraph 2 transition and the May 2026 updates:
6.1 Milestone 1: Launch Subtick $\rightarrow$ Late 2024 / 2025 Q12 Overhaul (Builds 2000106 – 2000777)#
- Early CS2 (
2023 – Feb 2024,Build 2000243):CSVCMsg_PacketEntitiessent coarse queue summaries (command_queue_info_t) and a singlelast_cmd_recv_margin. Third-person pawns used AnimGraph 1 (CAnimGraphNetworkedVariables), syncing 18 dynamic arrays of raw graph parameters (m_PredNetBool/Int/Float/Vector/QuaternionVariables)—causing massive snapshot size spikes whenever enemies peeked into PVS! - 2025 – Pre-AnimGraph 2 (
Apr 2, 2026,Build 2000777, SHAb34ebe76):- Replaced
command_queue_info_twith per-command Q12repeated sint32 cmd_recv_status = 22,cq_starved_command_ticks = 20,cq_discarded_command_ticks = 21,svc_UserCmds = 76, andsvc_NextMsgPredicted = 77. - Added client hit-FX prediction booleans (
is_predicting_body_shot_fx,is_predicting_head_shot_fx,is_predicting_kill_ragdolls) andbi_PredictionEvent = 19(CSPE_DamageTag = 1,CSPE_AddAimPunch = 3). - Added early TrueView demo support (
cl_demo_predict,cl_trueview_show_doa_predictions), while third-person player pawns still carried legacy AnimGraph 1 alongside experimental flat-array AG2 fields.
- Replaced
6.2 Milestone 2: The April 20, 2026 AnimGraph 2 Overhaul (Build 2000791, SHA c15581f2)#
In this massive 1,596-file update, Valve fundamentally re-engineered how server and client process player animations, hitboxes, crouching, and subtick friction:
- Total Deletion of AnimGraph 1 (
CBaseAnimGraphController.h):- Deleted
m_pAnimGraphInstanceand all 18CAnimGraphNetworkedVariables(m_PredNet*/m_OwnerOnlyPredNet*) vectors! - Replaced the transitional flat
m_serializedPoseRecipeAG2byte array with slotted deterministic AG2 Pose Recipes:CUtlVectorEmbeddedNetworkVar<AnimGraph2SerializedPoseRecipeSlot_t> m_SerializePoseRecipeAG2Slots(caching graph topologies viaag2_network_recipeshape_cache_size = 32)CNetworkUtlVectorBase<uint8> m_SerializePoseRecipeAG2Dynamic+m_nSerializePoseRecipeAG2ActiveSlotCNmGraphInstance* m_pGraphInstanceAG2evaluated and packed in parallel (animgraph2_serialize_pose_recipe_in_pre_pack_entities = true).
- Netcode & Hit-Reg Impact: Eliminated AnimGraph 1 peek bandwidth spikes and guaranteed that client rendering and server
CLagCompensationManager(sv_interp0/sv_interp1/cl_interp) reconstruct bone/hitbox transforms from the exact same server-authored pose recipe!
- Deleted
- Crouch Hitbox vs. Camera Split (
CCSPlayer_MovementServices.h):- Embedded
CCSPlayerAnimationState m_AnimationStatedirectly insideCCSPlayer_MovementServices. - Deleted single
m_flDuckOffsetand integer timers (m_nDuckTimeMsecs,m_nDuckJumpTimeMsecs,m_nJumpTimeMsecs), replacing them with separatem_flDuckRootOffset(third-person skeleton/hitbox root) andm_flDuckViewOffset/m_flBombPlantViewOffset(first-person eye/shoot height), and removed legacycam_head_constraint_*/camera_jolt_fixhacks.
- Embedded
- Subtick Friction & Engine Pacing Updates:
- Replaced
m_flOffsetTickCompleteTime/m_flOffsetTickStashedSpeedwithm_bUseFrictionStashedSpeed,m_flUseFrictionStashedSpeedUntilFrac, andm_flFrictionStashedSpeed. - Removed
cl_predict_after_every_createmoveandcl_tickpacket_send_every_tickinengine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll), split frame timing logs into separate server/client tick counts, and loweredcl_hud_telemetry_net_misdelivery_poorfrom5%to2%.
- Replaced
6.3 Milestone 3: Late April & May 2026 Combat, AimPunch & Ground-Topology Patches (Builds 2000795 – 2000837)#
Immediately following the April 20 AnimGraph 2 release, Valve shipped a series of critical server/client patches across late April and May 2026:
- April 21–22, 2026 (
Builds 2000795–2000797, SHAsd472fff1&5759255c) —CCSPlayer_AimPunchServicesRewrite:- Deleted
m_aimPunchAngle,m_aimPunchAngleVel,m_aimPunchTickBase,m_aimPunchTickFraction, andm_aimPunchCachefromCCSPlayerPawn, and deletedCSPE_AddAimPunchfromcs_prediction_events.proto! - Introduced
CCSPlayer_AimPunchServices(m_pAimPunchServices), splitting aimpunch into two independent timelines:- Predictable (your own weapon's recoil):
m_predictableBaseTick,m_predictableBaseTickInterpAmount(subtick fraction!),m_predictableBaseAngle,m_predictableBaseAngleVel. - Unpredictable (taking bullet damage from an enemy):
m_unpredictableBaseTick,m_unpredictableBaseAngle.
- Predictable (your own weapon's recoil):
- Why Players Felt This Immediately: Prior to April 21, getting hit by an enemy bullet mid-spray collided with your client's predicted recoil aimpunch variables, causing severe crosshair/recoil reprediction snaps during gunfights!
- Deleted
- April 30 & May 7, 2026 (
Builds 2000809–2000814, SHAs801fc5c1&8d7a8956) — Ground Topology Smoothing:- Added
m_bUsingGroundTopologyOffsetandm_flUsingGroundTopologyOffsetTransitionSmoothingtoCCSPlayer_MovementServices(and refined it on May 7 by removing rawm_flAltitudeAtLastUsingGroundTopologyOffsetTransition), smoothing AnimGraph 2 footlock/root vertical offsets on stairs and uneven slopes so head hitboxes stopped micro-teleporting vertically! - Added
PlayerConnectedState m_iMostConnectedtoCBasePlayerController(May 7).
- Added
- May 18–29, 2026 (
Builds 2000827–2000837, SHAsef3da11e&3f69ae73) — History Array Cleanup & Stack Inaccuracy:- Deleted legacy 2-element
m_angShootAngleHistory,m_vecThrowPositionHistory, andm_vecVelocityHistoryfromCCSPlayerPawn(consolidating onto the 32-slotShootPositionHistoryEntry_tring buffer and stashed subtick grenade vectors), removedcl_skel_constraints_enable, hardenedengine2.dllSteam auth validation (May 11–22), and addedweapon_accuracy_stack_boost_limit = 2.
- Deleted legacy 2-element
6.4 Milestone 4: Summer – November 2026 (Builds 2000870 – 2000950, Live v1.42.0.1)#
- Delta-Encoded
svc_UserCmds(codegen_delta_encoder = true): Added binary delta encoding (CMsgServerUserCmd.delta_data,sv_cq_delta_encode_svc_usercmds = true) acrossusercmd.protoandcs_usercmd.proto. - Live Spectator TrueView &
TrueViewLookAhead: Addedcl_spectator_predictplusTrueViewLookAhead(tick gobble+aggressive slowdown) inengine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) to reconstruct exact client-predicted gunfights (includingDOAshots) for spectators and demos. - Clock-Slam Jitter Protection (
cl_clockdrift_max_secs = 0.125+jitter_margin): Replaced the strict 3-tick (46.875 ms)cl_clockdrift_max_ticksceiling with0.125 s(125 ms=8ticks) plus+ jitter margin(engine2.dll + 0x00067ad0), eliminating violent mid-gunfight client tick slams during moderate jitter spikes.
6.5 Binary Function Reference Table (v1.42.0.1)#
| Binary | Function / Routine | RVA (v1.42.0.1) | Exact Technical Responsibility |
|---|---|---|---|
client.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/client.dll) | CCSGOInput::CreateMove | 0x00cff7a0 | Samples 1 input_history entry/render frame; decimates > 4 frames/tick (> 256 FPS) to 0.25-tick anchors + pinned click indices. |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | ClientRecvServerExecutedUserCmd | 0x00060970 | Decodes Q12 cmd_recv_status (÷ 4096.0f) from server snapshots into client margin history. |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | GetDesiredRecvMargin | 0x000611a0 | Computes 5.0 ms + 15.625 ms × max(sv_cq_min_queue, cl_tickpacket_desired_queuelength) (+1 tick if cl_async_usercmd_send == 0). |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | UpdateUserCmdRecvMarginPacing | 0x00061380 | Tracks 256-tick (4.0s) P0 minimum margin (minss) and dilates command clock within ±5% (τ = 0.4s). |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | CClockDriftMgr::ApplyClockDrift | 0x00067ad0 | Enforces cl_clockdrift_max_secs (0.125s) + sim_ticks + jitter_margin before slamming client clock. |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | UpdateClientClockSync | 0x00068270 | Downstream snapshot clock sync using sorted P3.125 (sar eax, 5) percentile + 1.0 ms deadband (0x00068780). |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | CServerSideClient::ProcessMove | 0x000b9540 | Enforces <= 1 CCLCMsg_Move/pkt, measures fractional net_margin to next 64 Hz tick, calls server.dll. |
networksystem.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/networksystem.dll) | CNetChan::ProcessPacket | 0x000c9320 | Computes usec_tick_deadline - usec_packet_recv (0x000c9515); clamps [-5.0 ms, 0) late packets to +1 µs amnesty; marks < -5.0 ms as -1.0f (LATE). |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | CNetworkServerService Tick Schedule | 0x001dc880 | Runs OnServerPollNetworking (0x1de120) $\rightarrow$ OnServerProcessNetworking (0x1de230) $\rightarrow$ OnServerBeginSimulate (0x1de340). |
engine2.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/bin/win64/engine2.dll) | UpdateClientAsyncSendMode / AdvanceTime | 0x00225e40 / 0x00226500 | Activates JIT async send (mode = 2); accumulates dt / 0.015625 and runs multi-tick catch-up bursts after server stalls. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | FX_FireBullets / FireBullet | 0x002a28f0 / 0x00a753f0 | Invokes lag comp, traces hitboxes, and calls CBaseEntity::TakeDamage (0x00a767aa) synchronously. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | GameFrame / SimulateEntities | 0x005b2d30 | Iterates slot = 0 .. maxClients - 1 (0x005b2d89) sequentially—no cross-player when sorting. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | ClearButtonEdges | 0x00687cb0 | Zeroes buttonstate2 (pressed) & buttonstate3 (released) on DOA packets and starved substitute cmds. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CSBaseGunFire / GetWeaponAttackTime | 0x009f5c80 / 0x009ffe70 | Extracts [player_tick_count + player_tick_fraction] from input_history[attack1_start_history_index]. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | GetInterpolatedShootPosition | 0x00b05090 | Linearly interpolates server-authoritative eye origin across 32-slot circular history buffer ([this+0xe8]). |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | EncodeCmdRecvStatus | 0x00b4c1f0 | Quantizes total_margin into signed Q12 fixed-point (× 4096.0f, 0.244 ms step) for snapshot feedback. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CBasePlayerController::OnSimulateUserCommands | 0x00b64080 | Dispatches to CCommandQueue (0xb64104); skips legacy sv_clockcorrection_msecs (30) (0xb43d00). |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CBasePlayerController::ProcessUsercmds | 0x00b65d60 | Runs !IsAlive() DOA check (0xb65ecb), computes net_margin + queue × 0.015625, queues UserCmds. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CPlayer_MovementServices::DoMovement | 0x00c6c180 | Sub-slices 15.625 ms tick across subtick_moves [prev_when, when] intervals and runs physics per slice. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CBasePlayerPawn::PostThink | 0x00cff5b0 | Checks IsAlive() (0xcff6af); skips ItemPostFrame() (0xcff721) if killed earlier in the same tick. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CCommandQueue::OnSimulateUserCommands | 0x00ecc6e0 | Pops 1 UserCmd/tick; generates up to 4 no-fire substitute cmds on starvation; trims > 150 ms bloat. |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | ComputeTargetLagCompInterpBrackets | 0x00ece720 | Cross-checks client sv_interp0, sv_interp1, and cl_interp against cmd_time - (lerp_ticks + 1). |
server.dll/Steam/steamapps/common/Counter-Strike%20Global%20Offensive/game/csgo/bin/win64/server.dll) | CLagCompensationManager::StartLagCompensation | 0x00ed65d0 | Enforces ±1 tick (15.625 ms) interp tolerance, evaluates 2 AG2 poses, and blends hitboxes by cl_interp.frac. |
Interactive Subtick, Dual-Jitter, Server Stall & Version Explorer
Switch across 5 historical CS2 builds (2023 AnimGraph 1 → Apr 20 AG2 Overhaul → May 2026 AimPunch Split → Live v1.42.0.1), test post-stall multi-tick catch-up bursts, browse the interactive glossary, and inspect the 5-era diff matrix.
🔍 Click to Zoom 220-DPI (3300×2112)
If you don't care about code addresses or equations and simply want to understand what actually happens when you click your mouse in CS2, how ping affects your shots, why your bullets sometimes vanish when you die, and who wins a close gunfight, here is the entire system explained in plain English.
1. What "Subtick" Actually Is: The Polaroid Photo on a 64-Tick Train#
When Valve announced CS2 with "What you see is what you get — tick rate no longer matters," many players understandably assumed that the moment you click your mouse, your PC instantly sends an emergency packet to the server, and the server immediately calculates your bullet in real time.
That is not what CS2 does.
Instead, imagine the CS2 server as a train station where a train departs strictly once every 15.6 milliseconds (64 times per second—that's what "64-tick" means). Nothing in the game world officially happens between trains; the server only updates player health, deaths, and scores when a train departs.
Here is the difference between old CS:GO and CS2's Subtick:
- In old CS:GO (without subtick): Your PC didn't even check where your mouse was aiming until the train doors were closing. If you flicked onto an enemy's head
4 millisecondsinto the15.6 mswait, and then your mouse slightly overshot by15.6 ms, CS:GO threw away where you were aiming when you actually clicked! - In CS2 (with subtick): Your PC acts like a high-speed Polaroid camera. The exact microsecond your finger clicks
Mouse1, your PC snaps a time-stamped Polaroid photo recording:- "Clicked at exactly
4.2 milliseconds(27%of the way through this15.6 mswindow)." - "Crosshair was aimed at this exact pixel."
- "The enemy on my screen was at this exact mid-stride animation frame."
- "Clicked at exactly
Here is the catch: That Polaroid photo does NOT get a private jet to the server. Your PC still puts that Polaroid into an envelope and sends it on the normal 15.6 ms train schedule!
- What subtick fixed: Where your bullet goes in space (your exact crosshair angle, how much you slowed down from counter-strafing, and where the enemy's head was on your monitor) is accurate to the microsecond.
- What subtick did NOT change: When the server processes your shot—and when other players find out they died—is still locked to that
15.6 ms(64-tick) train schedule.
2. Does a 30 ms Ping Player Have a Bigger Server Margin Than a 10 ms Player?#
Players often ask: "Does the server force a 30 ms ping player into a bigger waiting buffer (margin) than a 10 ms ping player?"
After reading the actual engine code, the answer is no if both connections are perfectly smooth—but a huge YES if the higher-ping connection has even tiny hiccups ("jitter")!
Think of the server's 15.6 ms tick deadline like an airport gate closing for takeoff:
- The
5 MillisecondRule (Smooth Internet):- CS2's engine has a built-in safety rule: it tries to pace your outgoing packets so they arrive at the server exactly
5 millisecondsbefore the gate closes—no matter what your ping is! - If Player A has
10 msping (meaning it takes5 msone-way for their packet to travel to the server) and Player B has30 msping (15 msone-way travel time), and both have rock-solid fiber internet with zero traffic jams:- Both players' packets arrive at the server
~5 to 6 msbefore the gate closes. Neither player sits in an extra waiting room on the server! - However, because Player B lives
10 msfurther down the highway (15 msdrive vs.5 msdrive), Player B has to leave their house10 msearlier to make the same flight (20 msbefore takeoff vs.10 msbefore takeoff). That10 msdifference in travel time still gives the10 msplayer a huge real-world speed advantage!
- Both players' packets arrive at the server
- CS2's engine has a built-in safety rule: it tries to pace your outgoing packets so they arrive at the server exactly
- *The 4-Second "Worst Traffic Jam" Trap (Why Higher Ping Usually Does Get a Bigger Margin):*
- Here is the hidden rule we uncovered inside
engine2.dll: CS2 constantly watches your packet arrivals over the last4.0 seconds(256consecutive ticks), and it adjusts your timing based on your single worst-delayed packet in those entire 4 seconds! - Imagine driving to the airport every day. On
255out of256trips, traffic is empty. On just1trip out of256, a delivery truck blocks the road for12 milliseconds. - If you miss the flight gate (
0 msmargin), your gun refuses to fire on that tick ("starvation"). So CS2's engine says: "Whoa, you had one12 mstraffic jam! For the next 4 seconds, I am going to force you to leave12 msearlier on EVERY SINGLE TRIP so even your worst jam arrives5 msearly!" - What happens on the other
255normal trips when there is no truck in the road? Your packets arrive5 + 12 = 17 millisecondsearly! - Because a server tick is
15.6 mslong, arriving17 msearly means your commands sit in a waiting line (queue = 1) on the server for a full extra tick! - Higher-ping (
30–60 ms) internet routes cross more routers, and cable/Wi-Fi connections frequently have10–15 msmicro-hiccups. That single rule silently adds10–15+ msof extra waiting-room delay onto higher-ping or jittery players, even when their in-gameMax Acceptable Game Traffic/ buffer setting is set toNone (0 ticks)!
- Here is the hidden rule we uncovered inside
(Bonus myth busted: Many players blame a console setting called sv_clockcorrection_msecs 30 for CS2's feel. The server code proves that CS2's modern Command Queue completely jumps over that old CS:GO code for human players—it is 100% inactive.)
3. Who Gets The Kill When Two Players Shoot at Almost the Same Time?#
In Counter-Strike, rifle bullets travel instantly ("hitscan"), and two players are never allowed to kill each other with bullets at the same time (unlike projectile games like Battlefield or Apex). One player must win, and the loser's bullet must be deleted.
When you and an enemy shoot at almost the exact same moment, CS2 decides who lives and who dies using two shocking rules:
Situation 1: Your Envelopes Catch Different 15.6 ms Server Trains $\rightarrow$ Lower Ping Wins
Suppose a server train departs at 15.6 ms:
- You (
30 msping,15 msone-way travel) have faster human reflexes! You click your enemy's head first in real life at2.0 ms. Your Polaroid travels across the internet for15 msand reaches the server at17.0 ms—missing the15.6 mstrain by1.4 ms! It has to wait for the31.25 mstrain. - Your Enemy (
10 msping,5 msone-way travel) reacts6.0 msslower than you, clicking your head at8.0 ms. Because their one-way trip is only5 ms, their Polaroid arrives at13.0 ms—making it onto the15.6 mstrain! - What happens:
- At
15.6 ms, the server processes the enemy's shot and marks you DEAD. - Just
1.4 mslater (at17.0 ms), your envelope arrives at the server door. The very first thing the server's mailroom does is check: "Is this player still alive?" Seeing that you died at15.6 ms, it literally erases the mouse-click from your packet ("Dead on Arrival" /DOA). - On your monitor, your PC already played your AK-47 gunshot sound and muzzle flash at
2.0 ms—and15 mslater when the server's death message reaches your PC, you fall over dead and your teammate spectating you says "You never even fired!" You actually out-reacted your opponent by6 ms, and lost purely to one-way travel time.
- At
Situation 2: Both Envelopes Catch the EXACT SAME 15.6 ms Train $\rightarrow$ Lobby Seat Number Wins (NOT Subtick!)
Now here is the single most surprising discovery in our entire reverse-engineering of server.dll.
Suppose both of your envelopes arrive in time for the exact same 15.6 ms server train:
- Looking at the subtick stopwatches inside those two envelopes, Player B clicked
1.5 msinto the tick (10%), while Player A clicked14.0 msinto the tick (90%)—meaning Player B clearly shot12.5 msearlier inside that same tick! - Who gets the kill? Almost everyone assumes Player B wins because Subtick recorded
1.5 msvs.14.0 ms. - The truth in the code: Player A can STILL win and erase Player B's shot!
- Why? When the
15.6 mstrain runs, the server does NOT sort players by their subtickwhentimestamps! - Instead, the server has
64numbered player slots (Slot 0, Slot 1, Slot 2 ...assigned when players connect to the server). It simply loops fromSlot 0up toSlot 63in numerical order:- If Player A (
14.0 msclick) happens to sit inSlot 0, the server runs Player A's entire turn first, fires Player A's gun, and instantly sets Player B's health to0(Dead)! - Microseconds later in that exact same computer loop, the server reaches
Slot 5(Player B,1.5 msclick). Right before letting Player B's gun fire, the code checks "Is Player B alive?" Because Slot 0 just killed them microseconds ago, the code says "No" and skips firing Player B's weapon!
- If Player A (
- In other words: *Subtick tells the server where your gun was pointing at
1.5 ms, NOT who pulls the trigger first when two shots land on the same server tick!* On the exact same tick, lower server slot number wins every time.
- Why? When the
4. Why Do You Still Die "Behind a Wall" in CS2?#
Have you ever peeked an angle, ducked completely back behind a solid concrete wall on your monitor, and then 0.05 seconds later keeled over dead from a headshot?
Subtick did not remove this—in fact, subtick makes the shooter's rewind more exact:
- Suppose you are playing against an opponent with
70 msping. Because snapshots take time to travel from the server to their PC, everything on their monitor is roughly45 to 60 millisecondsin the past. - On your screen, you tucked behind the brick wall
40 msago. On their screen, your head is still out in the open, and they click cleanly on your forehead! - Their PC sends that Polaroid to the server saying: "When I clicked, I was looking at the exact frame from
55 msago, and my crosshair was dead-center on their head." - As long as their rewind is within the server's lag-compensation limit, the server rewinds your body back
55 msto where you were standing on their screen, confirms their crosshair hit your head, and kills you. By the time that death message travels back to your PC, you feel like bullets bent around a concrete corner—even though from the shooter's perspective, it was a 100% clean shot in the open! - This same delay is also why peeking ("Peeker's Advantage") is so strong: when a
60 msplayer swings out from behind a corner, their movement has to travel to the server and then travel to your PC before you even see their shoulder—giving the swinging player a60–80 mshead start on a stationary defender!
5. What Changed in April & May 2026 (Before vs. After the AnimGraph Update)?#
You remembered that around April and May the engine and server changed how they processed player data. Comparing the exact game files before and after those updates confirms four major changes happened right in that window:
- April 20, 2026 — The "AnimGraph 2" Animation & Hitbox Overhaul:
- Before April 20: CS2 used an older animation system ("AnimGraph 1") for third-person player models. Whenever an enemy swung around a corner, the server had to send dozens of raw animation variables over the internet, and your PC had to calculate how their body bent on its own. That caused huge network packet spikes during gunfights (worsening jitter!) and occasional mismatches between where a body looked on your screen vs. where the server thought their head hitbox was.
- After April 20: Valve deleted AnimGraph 1 and switched to AnimGraph 2 "Pose Recipes." Now, the server calculates the exact body pose once and sends a tiny, compact "recipe" of the finished pose. Packet sizes during peeks dropped dramatically, and your screen's enemy model and the server's lag-compensation hitboxes now use the exact same recipe.
- April 20, 2026 — Splitting Crouch Hitboxes From Your Camera:
- In the same update, Valve separated how fast your third-person body/head hitbox ducks (
DuckRootOffset) from how fast your first-person camera ducks (DuckViewOffset), and reworked how subtick movement friction slows you down when counter-strafing.
- In the same update, Valve separated how fast your third-person body/head hitbox ducks (
- April 21–22, 2026 — Fixing "AimPunch" Shaking Your Spray Mid-Duel:
- Previously, CS2 used one shared system for both your own gun's recoil kick (which your PC can predict instantly) and flinching when an enemy bullet hits you ("aimpunch," which your PC cannot predict ahead of time). Whenever an enemy tagged you mid-spray, the surprise hit collided with your predicted spray recoil and made your camera/crosshair jolt unpredictably!
- On April 21–22, Valve ripped that out and built a brand-new
AimPunchServicessystem that keeps your own weapon recoil and enemy bullet flinch on two completely separate timelines so getting tagged no longer breaks recoil prediction.
- April 30 – May 2026 (and Fall 2026) — Stair Smoothing & Anti-Clock-Snap:
- On April 30 and May 7, Valve added ground-topology smoothing so player models walking up stairs or uneven ground stopped micro-snapping their heads up and down.
- Later in 2026 (live in
v1.42.0.1), Valve also fixed a harsh clock-snapping bug where a moderate lag spike (~50 ms) could cause your client to violently snap ("slam") its game clock mid-peek; the engine now factors your connection's jitter margin into that safety threshold so brief spikes don't teleport your view.
6. Why Your FPS, Spraying & "Fake Headshot Dinks" Still Matter in CS2#
When auditing client.dll and the remaining weapon/movement code in server.dll, three extra pieces of the puzzle emerged that every player feels in-game:
- Your FPS Directly Controls How Sharp Subtick Aiming Is:
- Many players assumed CS2 reads mouse movements on a separate
1000 Hzbackground timer even if your screen freezes. It does not. CS2 takes one "Polaroid" aiming snapshot per video frame your graphics card draws. - If an explosion or smoke causes a frame-time stutter (dropping your 1% low FPS to
45 FPSfor a split second), CS2 has fewer Polaroids to tell where your crosshair was moving! Conversely, if you play above256 FPS(400+ FPS), CS2 smartly keeps4evenly spaced snapshots per tick plus the exact frame you clicked, so high-FPS players get maximum click precision without clogging their internet upload.
- Many players assumed CS2 reads mouse movements on a separate
- Full-Auto Spraying Also Uses Subtick (And Scroll-Wheel Bunnyhopping Has a Hidden Speed Limit):
- Even when you hold down
Mouse1to spray an AK-47 (10bullets per second =1bullet every6.4ticks), CS2 does not round your bullets to6or7ticks like CS:GO did—it tracks that.4fraction continuously (6.4,12.8,19.2...) and blends your mouse spray across frames! - Meanwhile, for scroll-wheel bunnyhoppers,
server.dllenforces a hidden15.625 ms(1-tick) jump-spam penalty: if two jump inputs arrive less than15.625 msapart, the server ignores the second jump press.
- Even when you hold down
- Why "Predict Headshot / Body Shot Effects" Causes Fake Dinks:
- If you turn on client hit-prediction in CS2's settings, your PC plays a headshot spark immediately when you click—before asking the server. Even if your aim was dead-on, three things can change on the server before your packet arrives: (a) you were actually already dead (
DOA), (b) an enemy bullet tagged you5 msearlier and slowed/flinched your gun, or (c) server-only bullet spread seeds put the bullet slightly off-target—creating a "fake dink" for0damage!
- If you turn on client hit-prediction in CS2's settings, your PC plays a headshot spark immediately when you click—before asking the server. Even if your aim was dead-on, three things can change on the server before your packet arrives: (a) you were actually already dead (
7. Complete Plain-English Glossary: Every Term in the Interactive Engine Model Explained#
If you are using the Interactive Engine Model (Interactive Engine Laboratory (open standalone view ↗)), here is what every single slider, label, and number means in plain language:
Click Wall Time (ms)— The Real-World Stopwatch:Imagine a referee standing behind both players in real life with a stopwatch that starts at0.0 ms. If Player B hasClick Wall Time = 2.0 msand Player A hasClick Wall Time = 8.0 ms, Player B physically pressed their mouse button6.0 msfaster in real life. It measures pure human reaction time before internet ping or server ticks touch the shot.Server Slot (Slot 0 .. Slot 63)— Your Lobby Chair Number:When 10 players connect to a CS2 server, each player is placed into a numbered slot (Slot 0,Slot 1,Slot 2, etc.). Whenever two players' shots arrive in time for the exact same15.625 msserver tick, CS2 does not check who clicked earlier inside that tick—it simply checks seats in order (Slot 0, thenSlot 1, thenSlot 2...). Whoever sits in the lower slot number fires their bullet first, instantly killing the higher-slot player before their gun is allowed to shoot!Upload Latency (UL ↑)vs.Download Latency (DL ↓)— Why Two "30 msPing" Players Have Opposite Duels:ScoreboardPing(RTT) is actuallyUpload Latency + Download Latency!Upload Latency (↑)is the one-way trip from your mouse to the server—only Upload Latency (+ Upload Jitter) decides which server tick fires your bullet! A30 msplayer with5 ms Upload / 25 ms Downloadlands bullets as fast as a10 msplayer, beating a30 msopponent with25 ms Upload / 5 ms Download!Download Latency (↓)is the one-way trip from the server to your monitor—it decides how old your screen is, how much Peeker's Advantage swinging enemies get against you, and how far behind a wall you can die!
Upload Jitter (P0 ↑)vs.Download Jitter (P3.125 ↓)— Two Different Jitter Rules:Upload Jitter (P0 ↑)uses CS2's harsh "single worst spike in 4 seconds" (0th percentile) rule, adding your worst upload hiccup onto all 256 outgoing commands (Upload Margin = 5.0 ms + UL Jitter).Download Jitter (P3.125 ↓)sorts the last 4 seconds and ignores the worst3.125%of spikes—however, if sustained Download Jitter exceeds15.625 ms(1tick), the server rejects your screen's exact hitbox interpolation brackets (0x00ed6b6e) and snaps enemy hitboxes to server-estimated time!
Server Receive Margin (M)— How Early You Reach the Airport Gate:How many milliseconds before the server's15.625 mstick deadline your packet arrives. CS2 aims for5.0 msearly (Margin = 5.0 ms + 4s Peak Jitter).Queue Depth (q = 0, 1, 2...)— Extra Waiting-Room Ticks on the Server:When yourMarginstays under15.625 ms,q = 0(your command runs on the very next tick). The moment jitter pushes yourMarginabove15.625 ms(for example,5 ms + 12 ms jitter = 17 ms),qjumps to1—meaning your commands sit in line on the server for an extra15.625 mstick!Subtick Fraction (when = 0.00 .. 0.99)— How Far Into the Tick You Clicked:A decimal from0.00(0%, exact start of the15.625 mstick) to0.99(99%, right before the tick ends).when = 0.50means+7.81 msinto that tick. It tells the server where you were aiming and moving at that exact split-millisecond, not which tick runs your shot.Target Tick (Tick T+1, T+2, T+3...)— Which15.625 msTrain Carries Your Shot:The server steps the game forward every15.625 ms(T+1 = 15.6 ms,T+2 = 31.3 ms,T+3 = 46.9 ms). Whichever player's shot lands on an earlierT+ktrain wins a cross-tick duel automatically!DOA (Dead on Arrival)— Why Your Last Bullet Vanishes:If an enemy kills you onTick T+1(15.6 ms) and your packet arrives at17.0 ms(forTick T+2), the server checksIsAlive(), sees you are already dead, and wipes the attack button from your packet (ClearButtonEdges)—deleting the gunshot you already heard on your headset.JIT Async Send (cl_async_usercmd_send)— Just-In-Time Packet Dispatch:Enabled by default so CS2 sends your move packet right on schedule (5.0 msmargin) without waiting for a slow graphics frame. Turning it off adds+15.625 ms(+1full tick) to your server margin!CS2 Version Switcher— Testing Pre-AG2 vs. AnimGraph 2 vs. May 2026 vs. Livev1.42.0.1:Lets you switch the interactive engine model between 5 real CS2 eras to see how pre-April 20, 2026 AnimGraph 1 peek packet bloat (+3.5–4.5 msjitter spike), pre-April 21 shared AimPunch recoil desync, and pre-v1.42.0.146.9 ms(3-tick) clock-slamming compare against today's live build!Server CPU Spike / Tick Stall (+ms)— How a Lagging Server Literally Flips Who Wins a Duel:Suppose the15.6 msserver train gets delayed by+8.5 msbecause the server's CPU stuttered (departing at24.1 msinstead). Right before departing at24.1 ms, the server checks its mailbox and grabs every packet that arrived up to24.1 ms! A30 msplayer whose packet arrived at22.0 ms(which would normally miss the15.6 mstrain and get erasedDOA) suddenly boards the exact same train as the10 msplayer—and if the30 msplayer has a lowerServer Slot, the server stall makes the30 msplayer win instead! (Insidenetworksystem.dll, CS2 even has a hidden-5.0 ms"amnesty rule": packets up to5 mspast the scheduled tick are forgiven as+0.001 msinstead of markedLATE.)Fluctuating Server Frame Times— Global Lag Contagion for All 10 Players:When an overloaded server constantly wobbles above15.6 msper tick, it tricks all 10 players' PCs into thinking their own upload margins dropped (adding extra upload delay across the whole lobby) and delivers world snapshots late—forcing defenders' screens further into the past and making Peeker's Advantage and dying behind walls noticeably worse!Post-Stall Multi-Tick Catch-Up Burst— Why Guns "Jam" For 1 Tick After a Server Freeze:Right after a32+ msserver freeze ends, the server tries to catch up to real time by running two ticks back-to-back in< 0.2 ms. Because zero real internet time passed between those two instant ticks, any smooth-internet player withq = 0(zero extra buffered packets waiting) "starves" on the second tick—and CS2's substitute-command rule blocks their gun from firing until the next tick!
Bottom-Line Takeaways for Players#
- Stability beats raw ping once jitter exceeds
~10 ms: A rock-solid25 msethernet connection with1 msjitter has less input-to-server delay than a15 msWi-Fi/cable connection that suffers15 msjitter spikes every few seconds (because of CS2's 4-second worst-spike rule!). - Keep frame times smooth (
1% lows > 128–256 FPS) andcl_net_buffer_ticksat0(None): Frame stutters directly reduce subtick aiming snapshots (CreateMovesamples once per rendered frame), and setting network buffering to1 tickmanually adds+15.6 msto your server margin on every command. - Disappearing shots on death (
DOA) and same-tick losses are architectural, not "bad aim": When you hear your gun fire right before dying and deal 0 damage, either your opponent's lower ping/jitter caught the earlier15.6 mstrain (erasing your packet Dead-on-Arrival), or you both caught the exact same train and your opponent held a lower lobby slot number (0..63)!