On Mon, Aug 09, 2004 at 02:26:38PM -0700, David C. Jedynak wrote: > I have a 2 MB video buffer, only about 200k is used for front buffer > (and another 200k for back buffer). > > I want to put a bunch of various images in the offscreen buffer to be > blitted quickly for screen draws. > > At program startup, I'm creating a surface for each image and rendering > to it, but it would appear that these are going into system memory, not > video memory since the blit functions of these images don't work. If I > set these "cache" surfaces to videoonly, then they end up rendering on > my main video area.
That should not happen. DSCAPS_VIDEOONLY is the proper way to do what you want. What driver are you using? If you don't specify DSCAPS_VIDEOONLY / DSCAPS_SYSTEMONLY DirectFB will decide where to place the data. It may also swap them from one memory pool to the other during normal operations. All of that is completely transparent to the application. -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/
