the thing is this:
The networking of my game works relatively good (using java and udp (DatagramSocket)), but I have an issue when testing it with my friends over Skype or Teamspeak and I don´t have an idea why that is so.
We are connected using hamachi (it simulates a LAN-connection) and there is no lagging at all in the game, but every time the client tries to send data to the server, skype skips a some millisecs, causing great lagging so I´m not able to understand what my friend is saying at all.
For me it looks like sending a package over udp takes relatively long and blocks skype from using the connection in this time.
If you need some code, calling the method looks like this:
data = new byte[....]; .... DatagramPacket sendPacket = new DatagramPacket(data,data.length,HOST_IP,SERVER_PORT); socket.send(sendPacket);The maximum size of an udp-package is 1024 in my application; is this to big?
Or is there another, better way of sending packets using udp?
Hope you have suggestions on this,
thx in advance