Networking Multiplayer Support


          It took some time, but I finally figured out how to fix the terrible delay that occurred when data was processed in a server/client architecture. A noticeable one second delay occurred when a client attempted to move a Blupi. Now, this problem is fixed, and Blupi responds instantaneously. This was very hard for me to figure out, but the solution, as always, was a simple one. The source of the delay was from UDP packets being sent in a queue-like fashion. This queue resulted in up-to-date data having to wait for old data to be received by the clients. The solution was to simply delete all other packet data as soon as the first packet is received.  

Thank God this finally works!   :D

As always, any changes will be made available in code on github:  https://github.com/Happy-Flappy/Blupi-Empire/blob/main/network.h

Get Blupi Empire

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.