Akarin icon indicating copy to clipboard operation
Akarin copied to clipboard

Suggestion: Make piston multi-threaded

Open Kyrobi opened this issue 6 years ago • 3 comments
trafficstars

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 :/

Kyrobi avatar Mar 23 '19 05:03 Kyrobi

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...

shinohara-rin avatar Mar 23 '19 06:03 shinohara-rin

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.

WhyDoWeWonder avatar Jun 29 '19 01:06 WhyDoWeWonder

bump. We should do this

josephworks avatar May 06 '20 23:05 josephworks