I'm making a real-time 2D mmorpg gameMMORPG in real time on java. I'm facing a trouble sending position of surrounding players and npcsJava. Currently data of the all surrounding npcsNPCs' and playersplayers' data is sent tooso frequently causing Client to crash - itthat the client crashes—it can't handle the data as fast as it's receiving it.quickly enough. it must be sentI'm sending data so frequently because of healths and stuff must be updated pretty fast? So.to make sure the game state stays up to date. I'm asking how is that kind of stuff normally done
Is there an alternative? maybeShould I should make it so that it sends client ansend information about theonly when needed, like when health lose/movementis lost or something moves, instead of updating the whole object every time? and only send the stuff when neededHow do I do this?