Well the first thing I noticed is that you're using divison a lot with a variable called M. After you setup M, dividie it into 1 one time. After that use multiplication to get you're divison results.Originally Posted by notquitehere188
Tx = (B - Ty) * -M
Tbx = (BB - Ty) * -M
You may have to use an extra variable but you'll be trading 8 division instructions for 8 multiplication instuctions. Should give you an instant speedup.




Reply With Quote