@Arzenist made a great triangle filler which uses loop unrolling to speed up the tri fill so I thought i'd try and improve it a little. This project times both the improved and original version, and will show you the difference in time when you stop the test. Result: 8% speed increase Changes: - moved the filler into my own tri testing project - removed as many set vars as possible Speed test: - Azex 6.0 (this): 5900 tps - rex: 5000tps https://scratch.mit.edu/projects/509029922/
Q. Surely setting a variable and reusing it saves computation so why did I make this change? A. According to "every block timed" set var has a cost of 8 and subtract a cost of 1. Before there were 6 set vars and 6 subtracts (cost = 54) now there are 32 subtracts (cost =32) --updates-- - 29/10: added @xXName77Xx's version to test against -30/10: removed @xXName77Xx's version, due to inaccuracy