Open metalgearsloth opened 2 years ago
Having thought on it I think the ideal is not use rotation at all. It should have an internal value that just says "I was set to this rotation at this time" and then the client rotates its sprite based on that and the solar code works out power based on that so no moveevents are ever sent and we don't network anything (at least outside of the solars coming into pvs / someone using the UI to update the rotation). Should give significant savings in the system.
Since MoveEvent and RotateEvent were combined anything that subscribes to moveevent globally (e.g. broadphase, pathfinding, sprites, etc) has to deal with this. Ideally solars would rotate less frequently as people aren't going to notice a 0.1 degree difference.