Page 1 of 1

Max. values in Delay component

Posted: Fri Apr 11, 2025 2:06 pm
by Brendan
I'm using the delay component in various places of a project, with variables permitting global changes to delay parameters.

Elusive however is the maximum value that the Delay component will accept.

I'm guessing 16-bit UINT, though need to be sure before I render all such delays in microseconds, possibly then to discover that I need to switch in different delays (us, ms, etc) based on global values.

Thank you in advance,

Brendan

Re: Max. values in Delay component

Posted: Fri Apr 11, 2025 2:44 pm
by Steve-Matrix
Looking at the code, the delay functions accept a 16-bit unsigned integer, so you are correct. Although you may want to check when using large values for us delays as opposed to the equivalent ms delay. In practice, a 5000us delay may give a different result to a 5ms delay, especially on slower devices.

Re: Max. values in Delay component

Posted: Fri Apr 11, 2025 3:14 pm
by Brendan
Thank you Steve - Entirely appreciated and understood :)

Best regards,
Brendan