Re: [AD] DO_PARALLELOGRAM_MAP again

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


On 2010-09-12, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2010-09-11, Pavel Sountsov <slabode@xxxxxxxxxx> wrote:
> > 
> > Anyway, it's not like the drawer from the primitives addon is fatally 
> > slower... it is slow for two reasons: it uses function pointers instead 
> > of macro inlining; it uses al_put_pixel calls instead of direct memory 
> > writes. Both can be fixed in short order, but as you can imagine they 
> > make the development of those functions harder... (which is the very 
> > problem of parallelogram_map) so I did not do them. If that drawer 
> > becomes used for all bitmap drawing, it won't be a problem to speed it 
> > up via some macro work.
> 
> Yes, I see.  With this quick hack `ex_blend_bench 3' is nearly as fast
> as `ex_blend_bench 2' on my machine.  Restoring the commented out lines
> in fix_var makes it about twice as slow.

al_draw_prim should be acceptably fast now.  So do we move al_draw_prim
(and other "Low level drawing routines") to the core, or the whole of
the primitives addon?

Peter




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