So, as I've seen a lot of commotion over whether or not they can cause lag. Here's a general explanation of why they lag the server, in not so technical terms. So here's a post from a development POV about how they really really do cause lag.
Situation: Cooking pots checking the blocks around it once a sign with [Cook] on the second line is placed.
Every time a sign was placed with [Cook] on the second line, the plugin would check the block it was on, and check if it was netherrack, if it was, then it would check if the block above it was fire, and if it was, it would check if the block above it was a chest, if it was, it would add it to a giant list of cookpots, this would happen again, every tick. 20 times per second. Lag. All the lag.
Situation: Cooking pots all over the server.
Each cooking pot that there is on ECC, has to check it's inventory every tick, which is 1/20th of a second. It has to poll through every single slot that there is possible. And it has to do this. Every. Single. Tick.
Now, this wouldn't be really an issue, except that there are thousands, if not tens of thousands of them on the server. Each one individually polling each inventory slot for an item, and if it does find an item, it then checks if it is smeltable.
Now, imagine this happening 20 times per second. The amount of lag that this would cause, as well as the compute time on the processor of the server, is immense. Let alone the amount of RAM that this would eat up.
Now. For some FAQ:
Q: If this did so much to help the server, then why am I still getting X fps.
A: Client side FPS is not entirely influenced by the server, it's influenced by your computer and how it performs. Not caused by server lag. However, if you had block lag or rubberbanding, that could possibly be the server side.
Q: This is so unfair!!!ONE1ELEVENTYONE
A: In the great words of andrewkm. Deal with it. It's final.
Post any more questions you have, and I'll answer them from a development POV.
Thread Tools
Thread Tools
Page 1 of 2
-
Jess_T_Jericho BuilderBuilder ⛰️ Ex-President ⚒️⚒️
so does this mean more scams will happen ow that people can't use a public cooking pot i could see this being a bigger prob then lag.
-
-
Jamie, thanks for this post. I wish it was actually possible to give more than one rating. :D
*Gives winner, agree, useful, like and informative rating* -
Avaina1918 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
Guys there are people like me and nicit who do free /smelt or have a chest to place stuff in for it to be smelted. Like e-repairs. Deal with it and ask people who have /smelt and pay the fee like a regular human being.
-
Agree x 1 - List
-
-
-
mortezaseyfi63 BuilderBuilder ⛰️ Ex-Builder ⚒️
Mod Edit - Vulgarity in non english language
-
Vintage_Gamer BuilderBuilder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade
-
knears2000 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
I have two issues with this.
1. There should have been a warning is out the removal. Saying and taking them away out of the blue wasn't cool.
2. Now we'll have furnaces all over. Will the lag be as severe? I doubt, but it still will have a prescence. -
2. TileEntities, can cause lag, however, there is a rule in the Wiki about large amounts of furnaces. This I believe will be dealt with by staff. -
I'll post my idea that I mailed to @JamieSinn in-game.
Why not rework how cookpots work? I've done a bit of java scripting in the past, so with the limited knowledge that I have of java, I believe this should work.
Instead of having the cookpot constantly checking the contents of the chest, and the blocks that the sign is on and all that... Simply make a cookpot a chest and a sign. Nothing more. Slap a sign on a chest with [cook] on the 2nd line, and you have a cookpot.
This new style of cookpot would also behave differently. Instead of doing constant checks on the contents of the chest, it will ONLY check when the chest is opened.
The chest is opened, changing the state of the chest (the trigger).
30 second delay.
The sign checks if there are any smeltable items in the chest.
If yes, the sign checks if there is fuel in the sign.
If yes, begin cooking.
Like this, there should be minimal lag caused by cookpots, as a cookpot not in use causes as much lag as a normal chest and sign. Obviously, there would have to be a lock-out script during the 30 second delay to prevent someone from spamming a cookpot to cause lag.
I'm very curious as to how feasible something like this is, so feedback from those who have more experience with java, and minecraft plugins.-
Agree x 1 - List
-
-
As andrewkm said, it will not be added back. -
-
-
Agree x 1 - List
-
-
-
Like x 1 -
Winner x 1 - List
-
-
Don't forget about flux mining with Flux Pickaxes at mining level 250. 1 in 3 chance of mining an iron bar instead of an iron ore. With this, you can get 3 iron bars to make a bucket without any need for smelting fuels.
Page 1 of 2