Sky Resources 2

Sky Resources 2

3M Downloads

Update Redstone Calls every Tick

cjm721 opened this issue ยท 2 comments

commented

Was profiling some TPS issues and just noticed this. Not major but causes enough to be of concern especially when the fix is simple.

Should use neighborChanged in Block Call to notify your TE when it needs to check for redstone updates instead of looking every tick. For anything extending TileBase

commented

Agreed, this is a big problem in my upcoming modpack on our beta testing server. I did some profiling and every Crucible and every casing uses about 2ms. With lots of active players on the server and everyone having at least 2 of each, I have already - only because of these blocks - less than 20 TPS as those tiles use 58ms on the server

commented

I made some changes to redstone checks and world updates. I hope it'll improve in the next version (hopefully releasing later today)