Using Functions to improve scratch's processing speeds

So, Scratch has a problem; it is slow. Which is a small issue due to the fact i'm using it for my final project in AP computer Science principles. But i've found the solution, functions. Scratch calls em "custom blocks" but they are just functions. Normally they act the same as just making the code in non function form, except for a checkbox called "run without screen refresh" it essentially allows any code within to run at the same speed as turbo mode, in a regular project. Here's a speed comparison here's without the use of the turbo functions: https://scratch.mit.edu/projects/945409050/

And here is with: https://scratch.mit.edu/projects/953790318/

It is the exact same rendering functions, one just runs significantly faster.

The only pitfall is that you cannot use the "wait () seconds" block, as it breaks it. but who needs to wait when you have functions that are actually comparable to anything made after 1994.