Laser sends a lot of network packets.
AlexIIL opened this issue · 5 comments
The position of a laser is calculated on the server, not the client. The client should really calculate where the laser is (small scale), although it is still the server's job to calculate which table should be targeted.
Should be implemented in 7.99.8: https://www.mod-buildcraft.com/buildcraft-7998-alpha.html.
@JustWannaFly is this something you would be willing to look into fixing?
I've got the lasers to a point where there is no change to how they behave but with the following optimizations
- the laser beam position is being calculated from the client side
- the server only sends a network update when the laser changes its target as opposed to sending an update every tick
Does this take care of the performance concern or do we want to look at even further optimizations that would change the behavior slightly?