- Joined
- Jul 30, 2017
- Messages
- 192
- Reaction score
- 203
Entity collisions are the bane of all servers and the most horrifying eldritch wickedness that threatens our existence. What can we do to optimize collision mechanics to reduce lag?
One thought is to limit turrets, or moving docked entities in general, from attempting to move into space occupied by a block on the same docking tree. This should be far less computationally intensive than dealing with the actual collision and associated mess and would need to be calculated much less often.
Secondly, a tiered collision check depending on relative speed might be helpful, so collisions at higher speed could use a simplified entity hitbox instead of needing to check to position of every block relative to one another.
One thought is to limit turrets, or moving docked entities in general, from attempting to move into space occupied by a block on the same docking tree. This should be far less computationally intensive than dealing with the actual collision and associated mess and would need to be calculated much less often.
Secondly, a tiered collision check depending on relative speed might be helpful, so collisions at higher speed could use a simplified entity hitbox instead of needing to check to position of every block relative to one another.