Server Features:
• Processor: Intel(R) Xeon(R) Platinum 8358P CPU @ 2.60GHz (2 processors)
• Memory: 12GB
Problem:
I have a server where lava is rising. Using a script, I fill a 120x120 square area with lava every 5 seconds. The flow of lava, burning fire, and interaction of lava with water are turned off for performance reasons. However, some lag and ping issues occur on the server when players engage in PvP or fly with an elytra during the lava rising. The script I'm using is as follows. According to some sources, it's a mistake to do this with a script, and they suggest using a plugin instead. Do you think that's the case? Almost my entire server operates with scripts, and these lags only occur during the lava rising. Can I solve my problem without using a plugin?
Some of the support I've received says, "One of the biggest mistakes you can make is setting up a script-based server." I don't believe in that.
I'm looking for suggestions on how to solve my problem for better performance.
The script code I use for lava:
Timings report during lava rising:
• Processor: Intel(R) Xeon(R) Platinum 8358P CPU @ 2.60GHz (2 processors)
• Memory: 12GB
Problem:
I have a server where lava is rising. Using a script, I fill a 120x120 square area with lava every 5 seconds. The flow of lava, burning fire, and interaction of lava with water are turned off for performance reasons. However, some lag and ping issues occur on the server when players engage in PvP or fly with an elytra during the lava rising. The script I'm using is as follows. According to some sources, it's a mistake to do this with a script, and they suggest using a plugin instead. Do you think that's the case? Almost my entire server operates with scripts, and these lags only occur during the lava rising. Can I solve my problem without using a plugin?
Some of the support I've received says, "One of the biggest mistakes you can make is setting up a script-based server." I don't believe in that.
I'm looking for suggestions on how to solve my problem for better performance.
The script code I use for lava:
Code:
if {y} is 320:
set {game.state} to "5"
stop
loop blocks within location({x}+60, {y}, {z}+60, world("world")) and location({x}-60, {y}, {z}-60, world("world")):
loop-block is air or water
set loop-block to lava
add 1 to {y}
set {bossbar.time} to {Y}
stop
Timings report during lava rising:
Aikar's Timings Viewer
Aikar's Timings Viewer - View Timings v2 reports from Paper and Sponge
timings.aikar.co