After a few days of trying different things, I finally found a solution! Basically, the info was being sent as quickly as the computer could, which would leave my internet trying to play catch up with sending the info. So I basically ran 2 threads, 1 for receiving info (which was still on a loop as fast as possible to ensure no loss of data), and the other for sending data, which I sleep to make the data only send 20 times a second!