Re: [AD] About the speed of flat polygon primitives

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 01 Oct 2001, Eric Botcazou <ebotcazou@xxxxxxxxxx> wrote:
> > I made a proposal: adding a new field to the GFX_VTABLE structure, namely
> >
> >      AL_METHOD(void, hfiller, (struct BITMAP *bmp, int x1, int y, int x2,
> >                        int color));
> 
> The patch is attached (the new method is dubbed hfill() 
...
> Further testing is needed for the BeOS and DGA2 drivers.

DGA2, 800x600 16 bpp.

$ ./misc/cmplog.pl tests/noaccel.log tests/accel.log
  (note the order)
	      	  			 before -> after
        putpixel()                       = 96%	-> 95%
        hline()                          = 41%	-> 42%
        vline()                          = 69%	-> 78%
        line()                           = 16%	-> 16%
        rectfill()                       = 273%	-> 271%
        circle()                         = 21%	-> 21%
        circlefill()                     = 22%	-> 51%
        ellipse()                        = 28%	-> 28%
        ellipsefill()                    = 20%	-> 49%
        arc()                            = 20%	-> 21%
        triangle()                       = 18%	-> 46%

Improvements for circlefill, ellipsefill and triangle, but otherwise
no effect.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/