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.
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.
This is probably less of a scam than cookpots. In public cookpots, can't people just take their stuff?! its just like ereps. Just trust who you want to smelt your stuff.
How do cook pots relate to scamming? Jamie, thanks for this post. I wish it was actually possible to give more than one rating. *Gives winner, agree, useful, like and informative rating*
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.
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.
I agree with #1 completely, but I understand why not, considering the amount or rioting over it, there would have been so much beforehand, it would have been immense. 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.
Still the same issue. Checking for the chest to be opened is still a lag issue, as well as polling through the inventory. As andrewkm said, it will not be added back.
I am pissed. No way i am waiting 5 mins for every /smeltall. And even less chance i will use furnaces. It costs coal!
If you have pyro+ you can use /fill lava in a bucket and use that as fuel instead of coal. Blaze rods will also work.
Mining mcmmo 1000 = Smelting mcmmo 1000 = Fuel efficiency multiplier: 4x = 2 coal suffice for a full stack. Another reason for some people to get 1000 mining now.
There are plenty of options available to you for smelting, in terms of the /smelt, furnaces with various fuel items (even logs/planks work, too)... but it seems you are determined to find fault with all of them rather than accepting this shift, which is better for the server as a whole in terms of performance, just because you have to wait a little bit of time to smelt things instead of almost instant gratification.
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.