Difference between revisions of "AMOS:Optimizing Graphics"

From Amiga Coding
Jump to: navigation, search
(New page: ==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...)
 
(No difference)

Latest revision as of 00:06, 9 December 2007

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