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

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


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

The attached patch should mostly close the remaining gap. It revamps a
little the locking mechanism of the accelerated DGA2 driver.

Here're some results: DGA2 800x600x16, accel vs soft

Before:

 putpixel()                       = 97%
 hline()                          = 104%
 vline()                          = 63%
 line()                           = 10%
 rectfill()                       = 48%
 circle()                         = 13%
 circlefill()                     = 44%
 ellipse()                        = 20%
 ellipsefill()                    = 45%
 arc()                            = 18%
 triangle()                       = 42%
 textout()                        = 3%

After:

 putpixel()                       = 102%
 hline()                          = 105%
 vline()                          = 105%
 line()                           = 100%
 rectfill()                       = 106%
 circle()                         = 98%
 circlefill()                     = 103%
 ellipse()                        = 99%
 ellipsefill()                    = 106%
 arc()                            = 102%
 triangle()                       = 103%
 textout()                        = 97%


It needs further testing (and I won't apply it myself) because, as my DGA2
accel driver doesn't accelerate anything, I can't detect any synchronization
problem between hw-accel and software drawing primitives. A simple GUI test
should be sufficient for that.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx

Attachment: dga2.diff
Description: Binary data



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