space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.68k stars 3.36k forks source link

Solar panels rotate constantly #11486

Open metalgearsloth opened 2 years ago

metalgearsloth commented 2 years ago

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.

metalgearsloth commented 1 year 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.