Akarin
Akarin copied to clipboard
Suggestion: Make piston multi-threaded
I was interested in testing how pistons affects the server since tile ticks are multi-threaded. I placed down ~700 pistons and hooked them up to a clock using observers.
When doing the testing, I noticed that a single core was at ~100% usage while others are basically idle. Would it be possible to make pistons / observer multi-threaded, or am I doing something wrong?
Edit: I don't know if it's the observer solely that's contributing to the lag, the pistons, or both :/
it's possible, but likely to cause chunk synchronization problems. implementing such asynchronous mechanism would be painful and would leads to tons of bugs. we haven't found a practical way to solve this issue currently...
If pistons and/or redstone are causing a lot of lag try using an alternative redstone algorithm, which can often reduce related types of lag by up to a factor of 20. If you need some help with setting one up or choosing one please respond.
bump. We should do this