I’m currently working on an MORPG by myself coding from the ground up. I thought I had the basics of networking down, but when I change the IP from local host to the real IP there’s serious lag issues.
Players can move around and see each other, but they skip horribly. This leads me to believe the way I’m doing the networking is way off. Currently the server is setup to broadcast player positions 33 times a second, and the client is set to update the screen and inform the server of it’s position 33 times a second. I’m using output streams and sending lines such as “PXY 300 200” to the server as a means of updating positions.
How exactly should I go about fixing this skipping issue? Is it just completely horrible networking or is it the way I’m sending messages back and forth as strings?
Any help would be much appreciated, and source can be provided if that would help figure out the problem.