CraftBook 3

CraftBook 3

139k Downloads

Craftbook slowing down server tick with single gate

LadyCailinBot opened this issue ยท 7 comments

commented

CRAFTBOOK-3195 - Reported by CURS0R

I've made a single gate in the nether in the spawn chunks (chunks are always loaded and ticking).
The gate sign is activated by redstone.

Timings with the gate created: https://timings.spigotmc.org/?url=16585198
Timings with the gate removed (just the sign removed): https://timings.spigotmc.org/?url=16585416

The server runs at 19.3 - 19.4 with that single gate created and 20.0 with no gate.

I'm running craftbook-3.9-SNAPSHOT.jar from Jenkkins.

Thanks

commented

Comment by CURS0R

I'm running the latest build.
But you can close the issue for now, because, i've recreated the gate and was unable to reproduce the problem.

1 more information the gate was (and is) being controlled by a NOR gate with a redstone torch always active powering the sign and keeping the gate closed.

commented

Comment by CURS0R

Ok, sorry about this but i have a new update on the issue and its rather strange.
As soon as i restarted the server the ticks went down again as before.

So i went to the nether to check if there was some problem making the NOR gate float or something. but as soon as i enter the nether the ticks go back to 20tps. If someone would explain this problem to me i would think that by entering the nether something got unloaded and that's why the ticks went back up, I would say that the problem was not in the nether and not in that gate.

But the timings point me in that direction. what am i seeing wrong?
timings: https://timings.spigotmc.org/?url=16640428

print screen of the NOR Gate in attach.
(front) with the buttons
(back) with the circuit (normaly has stone on top: except for the block on top of the torch)

commented

Comment by me4502

My best guess is there's some bug where if a player isn't in the dimension it does extra checks on blocks being set that is causing more work to be done.

The only way to really know is for you to run WarmRoast

commented

Comment by CURS0R

Ok, nice. can you point me in the correct direction to install/run warmroast?

commented

Comment by CURS0R

I think this has nothing to do with craftbook. i though it was craft book because i do have a craftbook gate in the nether. Its a problem with chunk unload in 1.9.
I've removed everything from the nether an the problem remains. i now think its chestregen but i will have to check it better.
In a search i've found out that other plugins cause that problem with the 1.8 -> 1.9 update.
A i had to stop dynmap some days ago because of issues with freezing entities with chunkunload..

I've very sorry to use your time. your plugin is fantastic i love it.
I will buy the premium/donate as soon as i have some extra... :)

commented

Comment by me4502

Thanks - Just as a thought of what the issue could be - there's an issue in Minecraft 1.9 with tile entities loading nearby chunks endlessly in their lighting checks. Due to the amount of light sources in the nether this could be amplified. The issue is fixed in Paper, so maybe try running that and see if the problem is fixed?

commented

Comment by me4502

Which build are you running? And is the redstone pulsing on the gate? Because a gate that's not doing anything can't use any resources.