For Mark or Skid, wasted vidmem?

Blitz3D Forums/Blitz3D Programming/For Mark or Skid, wasted vidmem?

Tom(Posted 2004) [#1]
[edit] Figured it out, so don't waste ya time :)



Hi,
Enumerating surfaces, whether windowed or full screen, I'm always seeing what seems to be a desktop sized surface:

Width: 1280
Height: 1024
Pitch: 5120
Depth: 32
dwFlags: 4111

ddsd.ddsCaps.dwCaps
DDSCAPS_PRIMARYSURFACE
DDSCAPS_VIDEOMEMORY
DDSCAPS_VISIBLE
DDSCAPS_LOCALVIDMEM

I'm still a noob with the SDK so I dunno if it's needed, in windowed mode or otherwise. But if not, isn't that a waste of vidmem as B3D doesn't really have a use for it?

5meg off a 128meg card aint much, but it's a big chunk off a 32meg one.

Cheers
Tom


GW(Posted 2004) [#2]
Would that be the backbuffer you see?


Gabriel(Posted 2004) [#3]
Wouldn't that be the backbuffer?

EDIT: Nm, always a day late and a dollar short, I am.


Tom(Posted 2004) [#4]
I stand corrected, it's only there in windowed mode (never noticed that before :/)

In windowed mode it's the primary surface, in full screen the frontbuffer is the primary surface. so I guess it's the frontbuffer?

/me slaps head!

Nevermind!
Tom