Pressure plate is slow

User avatar
Tigerlore
Member
 
Posts: 21
Joined: Thu Jun 09, 2016 22:21

Pressure plate is slow

by Tigerlore » Tue Jun 14, 2016 19:34

Maybe there's something I'm not understanding here about mesecon operation?

I tried the Minecraft standard pressure plate in front of a door and it was so slow as to be unusable. Buttons seem to work fine, although I much prefer pressure plates to buttons.

Visually, it appears that you have to stand on the pressure plate for a second before it sends a signal. Is there a way to get it to react instantly?
Minetest developers should steal all the good ideas in Minecraft.
Linux is all the good ideas from Unix. It's a proven strategy.
 

User avatar
Calinou
Moderator
 
Posts: 3157
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Pressure plate is slow

by Calinou » Wed Jun 15, 2016 10:24

Tigerlore wrote:Is there a way to get it to react instantly?


No, because pressure plates poll for player presence every second (doing it more often would use even more resources). There's currently no callback in the Minetest API that says, "do this when player steps on a node".
 

User avatar
burli
Member
 
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: Pressure plate is slow

by burli » Wed Jun 15, 2016 10:42

Calinou wrote:There's currently no callback in the Minetest API that says, "do this when player steps on a node".

Should be. Many of those. Minetest really needs an event system
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: Pressure plate is slow

by everamzah » Wed Jun 15, 2016 10:50

nodetimer_interval = 0.1 will make it so the pressure plate is depressed almost immediately once you step onto it. Otherwise, IIRC, it defaults to 1 second.
 


Return to Problems



Who is online

Users browsing this forum: No registered users and 1 guest