From ram to vram

BlitzMax Forums/BlitzMax Programming/From ram to vram

BMAX does this for you anyway. The first load goes to sram and, when you drawimage, it is sent to vram. That's why there is a slight delay when drawing an image the first time.
The DX driver uses the DX memory cache manager replacing least used surfaces.
What I have done is created a resource manager where each resource has a 'keep cached' priority attached. At set points I draw the resource to ensure it has a good chance of being in VRAM (i.e. before a section which will use it).
Hope it helps.