Re: [AD] al_update_display_region |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
2009/2/26 Elias Pschernig <elias.pschernig@xxxxxxxxxx>:
>
> The question is, how reliably can D3D/WGL/GLX/OSX-GL drivers tell us
> about the swap method? Also, would it require any changes? As far as I
> can see, a swap method of COPY means you can treat the display as if it
> were a single buffer (and the behavior of al_update_display_region in
> current SVN then should be correct).
Yes, the current SVN is correct. But you still have to draw the whole
backbuffer, in case it fails and drops back to plain
al_flip_display(). And with all current drivers you'll still want to
do that.
> Also, while I updated the docs for the new display options, I was
> thinking ALLEGRO_DOUBLEBUFFERED is named wrong, as it is also used for
> page flipping/triple buffering/undefined method. Maybe we should rename
> it to ALLEGRO_SINGLEBUFFER (with reversed meaning of course) and remove
> the display flag of the same name.
Sounds reasonable. DOUBLEBUFFERED is hardly a word.
--
Milan Mimica
http://sparklet.sf.net