Ask about the SAMP UDP protocol.
#1

Is there any thought to the SAMP is changed to TCP communications, excluding the UDP protocol ??
Reply
#2

I doubt it. UDP is much faster and more efficient for games.

Why?

TCP ensures that the packets arrive, being slower. UDP does not ensure, that's where you have to put a validation system if you do not get a packet, forward it. It seems that in total, UDP is faster.


Sorry if not understood, I do not speak English.
Reply
#3

I highly doubt it since RakNet relies on UDP. It would be the last thing SA-MP developers would consider and UDP is a more viable option in my eyes.
Reply
#4

no its been this way probably for like 10 years now.. why would they change it now? -.-
Reply
#5

tcp is like high level programming.. you do stuff super easy but the underlying code can go fucked anytime because of some hillbilly issues

udp is like machine level programming.. you do some hardcore stuff but then u can directly communicate with the machine so you're in full control of everything that goes in n out
Reply
#6

Quote:
Originally Posted by Sublime
Посмотреть сообщение
tcp is like high level programming.. you do stuff super easy but the underlying code can go fucked anytime because of some hillbilly issues

udp is like machine level programming.. you do some hardcore stuff but then u can directly communicate with the machine so you're in full control of everything that goes in n out
This is simply not true.

The main 'disadvantage' of TCP is that it ensures that all packets arrive, and in order. This means that if some packets go missing, or if the packets arrive out of order, you will basically not receive any updates about the game until the missing packets have been retransmitted and have arrived. Other possible disadvantages when it comes to online gaming is that TCP is fair sharing (it fairly shares the available bandwidth with other TCP connections) and its congestion avoidance (which can cause packets to arrive out of order).

UDP, in the other hand, just sends the packets as a large burst. It uses as much bandwidth as it can, not caring about other applications using the same connections and it doesn't care about the packets after they have been sent. Whereas TCP would be dead set on retransmitting all the information you did not receive, UDP will simply not care (the information is 'out of date' anyway, so in an online game it's as good as useless), it will just send you the newest information.
Reply
#7

Read https://1024monkeys.wordpress.com/20...rs-udp-vs-tcp/ to find out why it's never going to be changed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)