Re: [AD] al_put/draw_pixel() speed |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] al_put/draw_pixel() speed
- From: "Trent Gamblin" <trent@xxxxxxxxxx>
- Date: Sat, 8 Aug 2009 15:34:32 -0600 (MDT)
On Sat, August 8, 2009 11:44 am, Elias Pschernig said:
>> "This operation <al_draw_pixel> is slow on non-memory bitmaps.
>> Consider locking the bitmap if you are going to use this function
>> multiple times on the same bitmap."
>>
>
> That's just false. I think it has to do with the way the D3D driver
> implements it (locking, drawing the pixel, unlocking). But that should
> be fixed in the driver - it obviously will be faster when only locking
> once - but the only sane way is to never lock. In OpenGL GL_POINTS is
> used to draw single pixels, something similar should be used.
D3D already does the same as GL. The manual is outdated. al_draw_pixel
used to lock the bitmap and do blending in software, kind of like
al_put_pixel does now.
Trent :{)>