Does TCP still lag like all heck?

Just wondering, cause I’m trying to make a server using UDP and it’s very difficult. I remember making a TCP Client and Sever and the game would just lag and lag. it was awful.

So my question is: Have the Java updates done anything about the awful lag in their TCP classes/methods?

There is no “lag” in TCP itself other than connection setup and any deliberate delay added by Nagle’s algorithm, which you normally turn off when doing tiny packets and not streams. Java just uses the underlying OS’s implementation, which may or may not be tuned well. If you have a firewall blocking path MTU discovery for example, you will lag like hell.

And the final variable is of course your client and server code.

I have never had any problems with tcp being laggy other than the user’s laggy conection. If you were experincing lag you probably made something wrong in your code.

On a personal note I find it amazing how the years have passed and you stil haven’t grow up enough to realize that most of the problems you face are your own fault, not somebody/something else’s.

And welcome back !

TCP is not at all laggy over a decent connection; you must have some other problem.

Cas :slight_smile: