AMOS:Optimizing Graphics

From Amiga Coding
Jump to: navigation, search

Replace Bar with a faster instruction

speed increase: medium


Use Cls col,x1,y1 To x2,y2 instead of Bar x1,y1 To x2,y2.

Note: Use R Bar in Turbo instead if possible.


Use Polyline to draw boxes instead of Box

speed increase: small


Use Polyline to draw boxes instead of Box.

Note: Use R Box in Turbo instead if possible.


Don't use:

        Box 10,10 To 10,10

Use this instead:

        Polyline 10,10 To 20,10 To 20,20 To 10,20