Running loop (block) based on performance

As I told you elsewhere:

PsychoPy also doesn’t support jumping around the code using a goto function or similar.

You have to set the loop up for the maximum number of iterations and then break out early when minimum performance has been reached.