This topic is now archived and is closed to further replies.



Recommended Posts

i am trying to copy my offscreen surfaces into agp memory but my frame rate decreases dramatically. my code looks like ...... DDSURFACEDESC2 ddsd; LPDIRECTDRAWSURFACE7 surf = NULL; DDCOLORKEY color_key; if( g_lpDDraw == NULL ) { OutputDebugString("error, DD_YuzeyOlustur()\n"); return NULL; } memset(&ddsd, 0, sizeof(ddsd)); ddsd.dwSize=sizeof(ddsd); ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_VIDEOMEMORY | DDSCAPS_NONLOCALVIDMEM |DDSCAPS_STANDARDVGAMODE ;//DDSCAPS_SYSTEMMEMORY; ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT |DDSD_WIDTH; ddsd.dwWidth = width; ddsd.dwHeight = height; if( FAILED( g_lpDDraw->CreateSurface(&ddsd, &surf, NULL) ) ) { OutputDebugString("error, DD_YuzeyOlustur()\n"); return NULL; } .... when blitting i use my secondary buffers blt() function. i know that agp bus is faster than systems bus so when i create offscreen surfaces on system memory it works faster. is there something wrong???...

Share this post

Link to post
Share on other sites