mesecon bug or minetest perf?

User avatar
Serh Arien
Member
 
Posts: 66
Joined: Tue Nov 03, 2015 19:53

mesecon bug or minetest perf?

by Serh Arien » Mon Mar 07, 2016 11:18

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?
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: mesecon bug or minetest perf?

by benrob0329 » Mon Mar 07, 2016 15:04

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: mesecon bug or minetest perf?

by rubenwardy » Mon Mar 07, 2016 15:09

Try a development / daily build, there have been optimisations.
There's also work being made to make mesecons etc more responsive by @sofar
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: mesecon bug or minetest perf?

by sofar » Tue Mar 08, 2016 03:39

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.
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: mesecon bug or minetest perf?

by sofar » Tue Mar 08, 2016 03:39

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.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: mesecon bug or minetest perf?

by benrob0329 » Tue Mar 08, 2016 06:43

Ah, I see. Cool!
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 16 guests

cron