;
The main drawing loop for turtle graphics needs 15 + plot instructions:
: fd ( dist--)
>r dx @ x @ y @ dy @
r 0 do
>r r + >r over +
dup 8 >> r 8 >> plot
r> r>
loop
drop y ! x ! drop
r> drop
;
The new performance can be estimated as 2.5*5+23us (plot) +12us (loop) = 42.5us vs 2.5*26+23us + 12us = 100us for the normal plot routine. Or 2.5*15+23us+12us = 72.5us.
I.e. 70% faster for turtle graphics or 135% faster for the given routine. The setup would be a bit more complex though.... I haven't worked that out yet.
-cheers from Julz
--
The DIY 8-bit computer from nichemachines™