Hello can i enable UDP in config ? does it need less resource than using tcp ? how the client know which port i setup ?
I think it will be better for a server with large number of player because udp dont care if the packet has been delivered and i think tcp has more treatment
In particular for this (having many players at once), the speed advantages of using UDP over TCP are nothing compared to the server load caused by a lot of players
No, Minecraft is coded to use TCP and handling packet loss potentially caused by UDP would require remaking much if not all of the networking system of minecraft
so no, you can’t change it to use UDP, and even if you could you would have much bigger problems before the disavantages of the TCP protocol becomes an actual problem
idk, probably because its for something else
Eureka is just a VS addon, so if there was a low level option like that it would be in VS itself not eureka
@just_snowfox @brickyboy
UDP and TCP are the two “low level” network protocols that are used anywhere
Stuff like http, https or tcp comes after it and use either TCP or UDP under the hood (TCP being used more often)
Basically UDP just tries to send the packet to the target computer, but you are not sure if the packet will be lost, duplicated, or appear before the packet you sent before
TCP requires a basic “handshake” and needs to maintain an open connexion between the two machines, but it guarantees that any message sent will be received once and at the right order on the target computer, at the cost of higher delays and higher bandwidth usages
That’s why things that don’t need to transfer data very fast
You can go on wikipedia for a much better but also more technical explanation
Ok so I searched a little more, it looks like VS can be configured to use UDP
But you would still need a reliable channel to send more important updates like block placement or ship creation I suppose
ship creation probably not because first time you receive packages about a ship
8B dimension id
8B ship id
24B world position
32B world roation (quateniond)
probably more
but I don’t know
8B dimension id
8B ship id
24B world position
32B world roation (quateniond)
16B shipyard chunk claim (bb chunkpos x2)
position has to be doubles
rotation is just quaterniond everywhere in vs2
This conversation is on Discord · Reply there