I’m glad to hear you were able to get it working.
The various causes of latency are covered in more detail in this thread, but the short version is that there are some circumstances where it is physically impossible to avoid latency, and changing the value of a parameter in order to change the behavior of an event involves the intersection of multiple such circumstances.