Re: [AD] Poor Ming performance

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


> how about not adding this one and let the accelerated gfx driver replace
> the normal hline entry in GFX_VTABLE with a pointer to the software one
> if it deems the speed of the acceletated hline to be not high enough ?

On my system, it's faster to use hw-accelerated hlines everywhere except in
the filling primitives. Do you mean that the gfx driver needs to know which
drawing primitive just called the hline() method and decide accordingly ?

I'd rather use a static approach: for example, under Windows, I'm almost
certain that filling with hw-accelerated hlines is always slower than with
software-rendered hlines. So the hfiller() method would be connected to the
software renderer, whereas the regular hline() method would still be
connected to the hardware one.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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