[BDS-18460] Piston performance issues Created: 16/Jun/23  Updated: 21/Jun/23  Resolved: 21/Jun/23

Status: Resolved
Project: Bedrock Dedicated Server
Affects Version/s: 1.20.0
Fix Version/s: None

Type: Bug
Reporter: ExtralePrC Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MCPE-171916 Large numbers of powered pistons caus... Resolved
Confirmation Status: Unconfirmed

 Description   

I used a lot of pistons in my friend's Bedrock server to build redstone circuits.

However, when my machine started running, the server became stuttering abnormally.

I've learned from other players that when the Pistons needs to push/pull back, but can't succeed, it tries every Redstone tick until it succeeds.

I think this is a glitch (programming flaw).

 

(Next is my thoughts, please read carefully)

So, I'm thinking. Whether replacing a better detection algorithm can reduce the performance overhead.(This method may work for Java Edition)

When the piston is pushed out or pulled back, the driven block is like a tree. Slime blocks and honey blocks are like trunks and branches, and the blocks that are driven are like leaves.

So, we can build a "moving block tree" and when the piston fails to push or pull back, only check if it can be pushed out or pulled back when the blocks around the "moving block tree" are updated.



 Comments   
Comment by [Mod] GoldenHelmet [ 21/Jun/23 ]

Please do not duplicate your own reports (MCPE-171916).

Generated at Sat Jan 11 08:21:54 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.