← systems library
game development

Input Buffers (Netcode)

Delay the local input, jitter-buffer the remote — advance a frame only when both are ready.

Local client Remote peer Simulation poll buffer +N send now apply @ F (delayed) peer inputs dejitter apply @ F draw Controllerraw input Input samplerpoll per frame Input delay bufferhold N frames Send to peerUDP · unreliable Remote peersends inputs Receivereorder Jitter buffersmooth arrivals Simulation tickadvance frame F Renderframe F OWNERSHIP Local client Network Remote peer Simulation Input Buffers (Netcode)Delay the local input, jitter-buffer the remote — advance a frame only when both are ready.
↓ Download SVG ↓ Download spec

Considerations