Lag, Jitter, and Packet Loss: Where Netcode Problems Come From and How to Solve Them

If you've ever played online games, then you probably know about lags firsthand. A missed shot that should have hit the target; a ball that sharply changes direction right in the air; you suddenly find yourself a few steps back in the place where you were a second earlier. There is nothing supernatural about this: these are common artifacts of systems that provide co-operation with people from other countries almost as effectively as with a roommate. At least most of the time.





, , , , , . , .





, ? 2021 โ€” , ?





, โ€” . , โ€” โ€” , .





, . . , , . , , , , .





, , . , . , , , , โ€” , .





- , , 10, 20 . battle royale , , . , , , . 





, : rubber banding, , ; , ; , .





?





, - , .





โ€” . , . , โ€” -, , . , -, .





, , - . โ€” , , , .  , , .





โ€” , , . frame pacing: 20 , 90 , 30 , - .





โ€” . โ€” .





, . , , , , , . , , free-to-play , . , , .





?









  • ยซ ยป, ;





  • ยซ ยป, - ;





  • ยซ ยป, . 





โ€” . , .





, , โ€” ,





, , , . , , , , . โ€” , , , โ€” , , , .





, , , . , , โ€” , OpenWRT pfSense โ€” - โ€” , , , . , - , , YouTube. 





, , , , , .





, , , , , .





-. , . , , , , . , . , .





, . , , , .





? , , . , - . , , , โ€” . 





, โ€” , . , , , , .





, . , , , .





, โ€”





, , , . , , .





Client hosting โ€” . , -. , Wi-Fi , , .





, , , . , , , , .





โ€” (peer-to-peer) , . , , , .





, , , โ€” , , , . , , . ยซ ยป โ€” , Brawlhalla, , .





, , , , . , , , .





โ€” , , , Counter-Strike, 128 , 64 .





โ€” . , , , , , , . โ€” , , .





, โ€” , , , .





, โ€” , . 





. (dead reckoning): , โ€” . 





: , , , , . - , , , . , , , . 





Dead reckoning โ€” , , , , , . (protocol data unit, PDU) (, ), , dead reckoning. PDU. , PDU, , , . , , .





, , - . (, , Valve Source, 1 ), , , . , ยซ ยป , (, ). : 





= โ€” โ€”





, , . , . ( , ) , . , , ( ) . .





, , . , ยซยป ยซยป. : .






. , , . . , .





, , Battle(non)sense: , . :








All Articles