Re: [AD] al_put/draw_pixel() speed

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


Matthew Leverton wrote:

Using al_put_pixel() on exactly one pixel of a video bitmap drops my
framerate from 350 to 20. (Perhaps the documentation should substitute
"worthless" for "slow," heh.) But using al_draw_pixel() doesn't harm
the framerate at all, despite the manual saying it will. So why is it
so much faster than put_pixel?

The real question is, why does al_put_pixel() always perform locking, even though the GFX driver might support some kind of drawing to textures?

	

--
Milan Mimica
http://sparklet.sf.net




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