In this video: https://youtu.be/15TemJ1Qi9M, the person replaces roblox's built in character replication which reduces the p2p latency heavily due to roblox's character replication system having a massive interpolation buffer for mobile kiddies who have a total internet speed of 1mbps and a massive router latency so that they can play roblox. This is however really bad for FPS or fast paced shooters which causes things like getting shot through a wall and other latency things.
In this gist, I will be going through how to code a replication system that bypasses interpolation lag, implements a dynamic interpolation buffer, supports snapshots, latency compensation, optimizes for bandwidth, and follows best practices.
An interpolation buffer is a time period for holding onto snapshots. When using unreliables and sending cframes rapidly, there is bound to be packet loss, or delayed packets. Interpolation delays gives you the time needed to reorder packet