#### Archived

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

# How to manage video memory

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

## Recommended Posts

I''m confused as to how i should be allocating memory for my direct draw surfaces. I''m using nearly 4 meg (i''ll cut it down at some point) which won''t always fit into video memory. When this happens i can place everything into system memory, work on it there and copy it over to the primary surface at the end of each game turn. The problem is this, Blits to the video memory from system memory are terribly slow, so i copy the image data over manually. This gives me a decent fram rate (80 fps max) but i''m worried about older machines not coping with it so i would like to load as much of the data into video memory as i can. So how do i decide what to load into video memory and what to leave in system? Also am i using the best methods for bliting, vid to vid i let DD do it (Blt), system to system i manually copy the data(memcpy) and the same for sys to vid(memcpy)? I guess the question is kinda vague but like i said i''m confused here. Once i know what i should be doing i can get it done, it''s just finding a goal thats proving difficult. cheers for any help guys, zipless

##### Share on other sites
You could implement the different ways to do it,
and test the systems capabilities after program
start, and then use the functions that fit best
to the system the program is running on.
(You can ask for the hardwares capabilities with
DirectX, but ask someone else than me how to do it,
I rearely used it, and dont know how to do at the moment.
But its possible, I remember Ive done something
like that...
at the moment, its in a different city...)

1. 1
2. 2
3. 3
frob
15
4. 4
5. 5

• 9
• 20
• 12
• 13
• 14
• ### Forum Statistics

• Total Topics
632143
• Total Posts
3004419

×