This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LUA timers explanation
#4
Using timerfd + select should provide the lowest CPU load because the process is in a sleeping state until a telegrams arrives or the timer expires.

For scheduled timers I don't see why localbus is needed. You can simply read the defined timer values from objects and run the required actions as needed. Using os.sleep() should be enough for such tasks.

Use localbus when timer is tied to a certain user action and a quick reaction is needed.
Reply


Messages In This Thread
LUA timers explanation - by Bitver - 31.07.2024, 05:36
RE: LUA timers explanation - by admin - 31.07.2024, 05:57
RE: LUA timers explanation - by Bitver - 31.07.2024, 06:26
RE: LUA timers explanation - by admin - 02.08.2024, 09:25

Forum Jump: