I figured out the math and how this whole thing works. It now runs incredibly fast and barely resembles the original. This triangle filler can fill more triangles per second than most tri-fillers on scratch with a resolution.
Original triangle filler is by @Geotale. Quad version here: https://scratch.mit.edu/projects/576278623/ New graph with my filler included (and @Arzenist's filler): https://www.desmos.com/calculator/5tqmdc6pcg