Jump to content
  • Advertisement

Archived

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

Yaskil

DDSCAPS_NONLOCALVIDMEM (AGP memory)

This topic is 5681 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Is it fast with software memory? Writing to video memory is slow no matter what, and some cards don''t support AGP Surfaces

So whatever is fast, use that

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!