RE: [AD] No more video/system bitmaps

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


> Simpler is better, I agree. One thing that has been discussed, is
> giving allegro hints as to whether it should move a bitmap to VRAM or
> not. My thought for the context is that Allegro would know that any
> bitmap with an open context should stay in system RAM. That's what the
> flush_context was for - to update it but keep it pinned in main
memory.

Sure, that would work too. Selecting a new context implies a flush, that
way, we can move teh bitmap around when we know it will no longer be
drawn to.


> Have you any thoughts on how that could be achieved in the
> select_bitmap system? Presumably the selected bitmap wouldn't be
moved,
> but when the screen is selected, it might. There could be an explicit
> function, or maybe Allegro could move bitmaps automatically that have
> been blitted 'recently', but not blitted to.

Yeah, that sounds reasonable.





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