How to make this run faster/more responsive?

Xnke:
Alright-so I need to break out each individual part of the program and write subroutines [...] for each individual part, and then only call them when needed-this will speed up the loop, and should make it more responsive.

It's a little more complicated than that. If the code in all the functions needs to be called there won't be any time saving.

But by breaking the code into short single-purpose functions it will be much easier to see if time is being wasted somewhere and to identify the parts that may be causing the poor response.

...R

1 Like