{"action":"opened","issue":{"url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/issues/435","repository_url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun","labels_url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/issues/435/comments","events_url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/issues/435/events","html_url":"https://github.com/MinetestForFun/server-minetestforfun/issues/435","id":153295808,"number":435,"title":"More lags with factories","user":{"login":"Cyberpangolin","id":12512762,"avatar_url":"https://avatars.githubusercontent.com/u/12512762?v=3","gravatar_id":"","url":"https://api.github.com/users/Cyberpangolin","html_url":"https://github.com/Cyberpangolin","followers_url":"https://api.github.com/users/Cyberpangolin/followers","following_url":"https://api.github.com/users/Cyberpangolin/following{/other_user}","gists_url":"https://api.github.com/users/Cyberpangolin/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyberpangolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyberpangolin/subscriptions","organizations_url":"https://api.github.com/users/Cyberpangolin/orgs","repos_url":"https://api.github.com/users/Cyberpangolin/repos","events_url":"https://api.github.com/users/Cyberpangolin/events{/privacy}","received_events_url":"https://api.github.com/users/Cyberpangolin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/labels/Modding%20%E2%9E%A4%20BugFix","name":"Modding ➤ BugFix","color":"ee2552"},{"url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/labels/Performance","name":"Performance","color":"fef2c0"},{"url":"https://api.github.com/repos/MinetestForFun/server-minetestforfun/labels/Priority:%20Medium","name":"Priority: Medium","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-05T18:40:55Z","updated_at":"2016-05-05T18:40:55Z","closed_at":null,"body":"Today, the average lag was around **4.5s**, with a top at **7s** when I dared to use my factories.\r\n\r\nIt seems that plumbum's factory (and maybe other ones) is working for nothing, **when nobody is near it.**\r\n**\r\nWe must kill that f+*\"*ç lag!**\r\n\r\nProposals:\r\n- make sure pipeworks and mesecons are totally inactive when there is no player near them (say 50-100 blocks). Ideally, only tweak the items that may add thing into the pipes, ie: blinky plants, vaccuming pipes, injectors... so the units already into the factory can finish to be processed.\r\n\r\n- add a \"pipepolice\" (I can do the job) who has rights to outerpass the areas to kill or fix a bad factory.\r\n\r\n- eventually restrict pipeworks and mesecons to selected people who know what can or cannot be done.\r\n\r\n- take a previous version of pipeworks /mesecons that was inactive at a certain distance (MFF1 did not have this problem, if I remember well. Typically, I had to be near the public factory to have the stone I needed, but there was NO player detector))\r\n\r\n- slow down pipeworks and mesecons's thick depending on the max_lag value. a bigger lag means slower factories, so less lag.\r\n\r\n- slow down the vacuuming speed.\r\n\r\n- If really we cannot make better, remove pipeworks **and buy me tissues**. I may cry a lot.\r\nThe objective is of course to kill any zombie factory that makes the game unplayable. It seems that any factory stays on until all pipes are empty...\r\n\r\nPlease note: my 2 factories have protections against lag: the public one is automatically stopped when an item (cobblestone or stone brick) cannot find a way to a chest, and the wood one is stopped as soon as nobody is inside it (player detector). So, it _IS_ possible to do it."}}