Skip to main content
gamedev.net
🔒 Locked

Localhost TCP socket performance

Started by Structural 1 reply 800+ views
Original Post
Structural
Structural
Does anyone know the performance of TCP sockets over the loalhost address? I might use this for an internal game interface. Like singleplayer games played over a local socket. Bots/AI connecting to this local socket. It keeps the interface nice and clean. Server and client nicely separated. But I need to know what the performance hit is. TY
STOP THE PLANET!! I WANT TO GET OFF!!
SiCrane
SiCrane
This is system dependent. In most cases it runs faster than, for example, a connection over the internet would. But in many cases using a loopback interface actually runs slower than a connection over a LAN does.
kuphryn
kuphryn
Generally games use UDP, which is a significant speed improvement over TCP.

Kuphryn

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.