Press the flag or space key to run a test... Switch between the original and my optimized version using the "Optimized" variable. Set the length of the test (in seconds) by adjusting the "Duration" variable.
Thanks to @MentalBox for the original tri filler! I simply optimized it a bit more so it now runs ~10% faster. Also fixed a small bug that would cause off-screen triangles to get their sides "shrunken". If it was speeeeeeeeeedy before, it's now extra super really speeeeeeeeeeedy (notice the 11 "e"s in the second "speedy", compared to 10 in the first) This is currently the fastest triangle filler on Scratch. Despite this, I have very little knowledge on how it actually works, as it's an optimized remix of @MentalBox's triangle filler, and I didn't really bother looking at the math when I optimized it.