I load two Bmp into graphic card memory one 2x20 and second 1x40 are they going to take the same amount of space ? ??
Posted on 2004-01-27 07:40:46 by AceEmbler
Good question... I don't know whether 'pitch' only affects your back/front buffers, but if pitch also affects bitmaps stored in device memory, the answer would probably be no :)
Posted on 2004-01-27 10:48:00 by f0dder
Unfortunately the answer to f0dder is YES :(

Any surface that is loaded into video memory has a pitch ... even textures but similar bitmaps might just might have the same pitch/sizes

However textures are priviledged by some compression formats

So you either have to stuff multiple textures/bitmap into a single surface and or choose dimensions that have no pitch :P, aka some powers of 2

but some inefficient use of memory can not be avoided, so buy a larger video board and check for free space and pitch
Posted on 2004-01-29 07:29:00 by BogdanOntanu
What to do when i have to load new bitmap into memory but ther is no room for that, how can i know how many space i have to release ??
Posted on 2004-01-29 11:08:20 by AceEmbler