Can a function execute over more than one tick to save performance?

Perhaps a timer then? I’m not overly familiar with them in a C++ context, but I know you can set them up to fire at whatever interval you choose. Here’s some official doc info on them. Steps 5 and 6 show you how to set one up.