Alright, so to start off I am currently using the native Java Socket implementation and everything works fine. I'm planning on rewriting the networking portion of the game engine to improve and clean it up and I'm not sure if I should move to another API or not.
From what I've read, my options are:
Native Java Socket
RMI
The game engine in question is 3d, with an aim of 2 - 24 players on a server at a time. I use floats for location/velocity/rotation updates.
What would be the best option? Latency and stability are extremely important. No one likes lag and random disconnects.
Also, there is an API I saw a while back that was an optimized network packet API for Java. I can't remember the name unfortunately... Anyone know what it was called?
-edit-
And of course, I immediately find some good anwsers after I post this thread.
Looks like I should use Kryonet which is designed for this kind of thing, or I should build my own thing off of Java NIO.