How would one go about creating something like a process function, that is fired consistently but not as frequently

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By xdfo

Basically I want to ‘slow down’ certain target acquisition polling so it doesn’t get called unnecessarily. Would prefer a method without timers but not too picky.

:bust_in_silhouette: Reply From: Inces

You can use dynamic timers, by yielding


But it won’t improve your performance if you are going to imitate process every 0.01 second :slight_smile:
0.1-0.25 should be fine

Ok great I was a bit put off by the amount of typing for setting up a normal timer but this is more sane, thanks!

xdfo | 2022-07-30 21:57