BuildCraft|Core

BuildCraft|Core

7M Downloads

Lasers don't automatically look for new tables anymore

SpaceToad opened this issue ยท 4 comments

commented

Seen on marmot, it seems like that once the lasers found a table to work on, they get stuck on it. They should instead regularly see if there are other tables available to balance the work.

commented

Only a idea. Why don't you make them that they search every min for a new table so that the lag is not to big but they still search for new tabels.^^"

commented

Advanced Crafting Tables have a small "reset delay" between each item crafted during which it returns false to isValidTarget() so they don't suffer from this issue.

commented

I changed them a while back. Server profiling showed idle lasers spending significant CPU looking for work. I may have failed to take into account work balancing.

commented

Thanks for the hints and the feedback. I'll fix that using a small delay with a random offset, so that a bunch of laser tables don't try to look for a new target at the same time.