RE: [AD] No more video/system bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: <alleg-developers@xxxxxxxxxx>
- Subject: RE: [AD] No more video/system bitmaps
- From: "Robert Ohannessian" <ROhannessian@xxxxxxxxxx>
- Date: Tue, 21 Jun 2005 12:27:10 -0700
- Thread-index: AcV2loe5vSYunhk8TuG/rLS5S/DpfgAAIW4g
- Thread-topic: [AD] No more video/system bitmaps
> 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.