Memory Question
Should you store objects for your game in system memory or video memory? My game code was getting slower and slower, and I have like 150 objects that were stored in video memory. Would the game run faster if I stored them in system memory. Any other ways to help make the game run faster are gladly accepted.
Visit http://members.xoom.com/ivanickgames
Visit http://members.xoom.com/ivanickgames
depends on what you are doing with the objects. if you just use the directdraw blit operations video memory is the best and fastest way to go. if you have to read from the manually, ie. alpha blending, system memory is faster.
Well, I think Staffan is an the right track. Accessing video memory with the CPU is slower than accessing system memory with the CPU.
Usually, you only want to put things in video memory that only the video card will access (textures, sprites, etc...).
Usually, you only want to put things in video memory that only the video card will access (textures, sprites, etc...).
How do you access video memory to stores data ???
---------------------------------------------You Only Live Once - Don't be afriad to take chances.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement