Page 1 of 1

mesecon bug or minetest perf?

PostPosted: Mon Mar 07, 2016 11:18
by Serh Arien
Hello every one, i have a quest ( again and again :) )
My preassur plate took a realy long time to be activate.
I mean if we run on them or jump on them, they won't activate.

Is it a bug from mesecon mod or they were like this from the begining due to minetest capacity?

Re: mesecon bug or minetest perf?

PostPosted: Mon Mar 07, 2016 15:04
by benrob0329
It's called lag, it just takes a minute sometimes if your on a server or a slow computer.

It helps if your on a LuaJit build of Minetest, as LuaJit is the fastest implementation of Lua.

Re: mesecon bug or minetest perf?

PostPosted: Mon Mar 07, 2016 15:09
by rubenwardy
Try a development / daily build, there have been optimisations.
There's also work being made to make mesecons etc more responsive by @sofar

Re: mesecon bug or minetest perf?

PostPosted: Tue Mar 08, 2016 03:39
by sofar
Serh Arien wrote:Hello every one, i have a quest ( again and again :) )
My preassur plate took a realy long time to be activate.
I mean if we run on them or jump on them, they won't activate.

Is it a bug from mesecon mod or they were like this from the begining due to minetest capacity?


Mesecons uses node timers to periodically check for the presence of nearby players standing on the pressure plates. By design node timers only are processed every 1.0 second, even though there's really no reason for it.

I wrote a patch to make this time configurable, so that you could set it to e.g. 0.2 seconds:

https://github.com/minetest/minetest/pull/3805

With that patch applied, and a
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
nodetimer_interval = 0.2
or so, pressure plates work like magic.

Re: mesecon bug or minetest perf?

PostPosted: Tue Mar 08, 2016 03:39
by sofar
benrob0329 wrote:It's called lag, it just takes a minute sometimes if your on a server or a slow computer.

It helps if your on a LuaJit build of Minetest, as LuaJit is the fastest implementation of Lua.


Lag is entirely irrelevant in this case.

Re: mesecon bug or minetest perf?

PostPosted: Tue Mar 08, 2016 06:43
by benrob0329
Ah, I see. Cool!