Raspbery Pi GPIO plugin
#8
Tigerw, such hooks would most probably kill the performance whenever there's a bit more redstone. In this case the polling is actually the better way to go - there's some 16 blocks to poll per tick, compared to possible thousands of hook calls, each having to lock a critical section on a plugin.

However, this does bring me to an interesting idea - how about letting the plugins register callbacks for specific blocks being changed? Something like "If block at XYZ changes, call this function".
Reply
Thanks given by:


Messages In This Thread
Raspbery Pi GPIO plugin - by Matouš - 02-13-2014, 08:33 PM
RE: Raspbery Pi GPIO plugin - by xoft - 02-13-2014, 10:06 PM
RE: Raspbery Pi GPIO plugin - by Matouš - 02-13-2014, 10:46 PM
RE: Raspbery Pi GPIO plugin - by xoft - 02-14-2014, 12:00 AM
RE: Raspbery Pi GPIO plugin - by worktycho - 02-14-2014, 02:56 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 02-14-2014, 04:32 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 02-14-2014, 04:55 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-14-2014, 06:34 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 02-14-2014, 10:13 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 02-15-2014, 03:10 AM
RE: Raspbery Pi GPIO plugin - by worktycho - 02-15-2014, 03:45 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-15-2014, 06:20 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 02-15-2014, 09:16 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 02-16-2014, 02:13 AM
RE: Raspbery Pi GPIO plugin - by NiLSPACE - 02-16-2014, 02:16 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 02-16-2014, 02:18 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-16-2014, 02:27 AM
RE: Raspbery Pi GPIO plugin - by xoft - 02-18-2014, 08:14 AM
RE: Raspbery Pi GPIO plugin - by xoft - 03-02-2014, 03:25 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 03-02-2014, 04:14 AM
RE: Raspbery Pi GPIO plugin - by worktycho - 03-02-2014, 05:11 AM
RE: Raspbery Pi GPIO plugin - by xoft - 03-02-2014, 05:19 AM
RE: Raspbery Pi GPIO plugin - by bearbin - 03-02-2014, 05:55 AM
RE: Raspbery Pi GPIO plugin - by xoft - 04-25-2014, 04:13 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 04-25-2014, 04:17 AM
RE: Raspbery Pi GPIO plugin - by xoft - 04-25-2014, 06:47 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 04-25-2014, 07:34 AM
RE: Raspbery Pi GPIO plugin - by tigerw - 04-26-2014, 06:36 AM
RE: Raspbery Pi GPIO plugin - by mieciu0077 - 06-01-2016, 05:51 AM
RE: Raspbery Pi GPIO plugin - by Matouš - 06-01-2016, 06:41 AM



Users browsing this thread: 9 Guest(s)