Re: [AD] question about opengl bitmaps

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


Peter Wang wrote:

Ah, how could I miss that.  Can we somehow avoid that step in the usual case
when the copy in main memory is already up to date?

We can mark the memory dirty if drawing to the texture happened since the last lock_region(), but i think it's error prone, and an optimization at the wrong level in general. The font loader should just lock the bitmap once. Or use a memory bitmap (um, do they even exist?). And try not to copy the whole bitmap if not necessary. Or an bitmap function would would mark it read only?
See, plenty of other things to consider. :)


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




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