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.

DMX with LM5p - errors
#6
Hello Edgar/admin,

I have rewritten the DMX library to my own needs and altered quite some functionality, but I am puzzled about something in the original DMX library you have written.

It stores the current values in storage (storage.exec), and each second, retrieves them from storage, populates an array with them, calculates the DMX updates and then forgets about them. But why are the current channel values in storage?
  • You could just leave the values in the channels array am I right?
  • Changing to a new target value could be done by the set function directly to the value array as well I think?
  • I believe the array is lost anyway when the calling resident script is deactivated/activated, so the storage will only be useful to refill that array with the old current values? But you don't know how current they are?
  • And if the storage is there to just fill the channels array in memory on a restart, then why not only call it on a restart?
  • I thought about memory efficiency, but seeing the array is filled every second anyway the memory will be taken anyway.
Am I missing something here?
Reply


Messages In This Thread
DMX with LM5p - errors - by tss68nl - 27.06.2017, 20:39
RE: DMX with LM5p - errors - by tss68nl - 27.06.2017, 22:27
RE: DMX with LM5p - errors - by admin - 28.06.2017, 06:20
RE: DMX with LM5p - errors - by tss68nl - 03.07.2017, 09:03
RE: DMX with LM5p - errors - by admin - 03.07.2017, 09:15
RE: DMX with LM5p - errors - by tss68nl - 19.08.2017, 16:52
RE: DMX with LM5p - errors - by admin - 19.08.2017, 17:39
RE: DMX with LM5p - errors - by tss68nl - 19.08.2017, 18:59
RE: DMX with LM5p - errors - by admin - 21.08.2017, 08:11
RE: DMX with LM5p - errors - by tss68nl - 21.08.2017, 09:29

Forum Jump: