Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Too many surfaces bad?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 SikCiv   Members   

122
Like
Likes
Like

Posted 08 December 1999 - 12:11 PM

I have around six 640x480 surfaces in use in my game, and I will add more when I create more sprites, but I was wandering if there is a limit to how many surfaces you can have at any one time, or does it just depend on how much system memory you have?

#2 mason   Members   

128
Like
Likes
Like

Posted 08 December 1999 - 11:12 AM

there's no limit that I've seen.

Quaternion (my game) keeps roughly 1000 surfaces (of various sizes) in memory.

But you should be watching the video memory very closely... putting your most commonly used surfaces in vidmem gives you a BIG speedup.

Mason McCuskey
Spin Studios
www.spin-studios.com



#3 SikCiv   Members   

122
Like
Likes
Like

Posted 08 December 1999 - 11:35 AM

Coole.

At runtime, can you move a surface from the system memory to the video memory and vise versa without releasing and recreating the surface?


#4 Alastair   Members   

122
Like
Likes
Like

Posted 08 December 1999 - 12:11 PM

If your using OFFSCREENPLAIN surfaces then no. You have to create a separate video memory surface and Blt the system memory surface into it. Remember that an offscreen plain surface in video memory _MUST_ have the same pixel format as the primary surface!

If your using your surfaces as Direct3DIM textures then in DX7 you can have the texture manager automatically move them between system memory and video memory depending on which ones have been used most recently. Create the surface with the TEXTURE and TEXTUREMANAGE caps. Note that textures have stricter size restrictions than offscreen plain surfaces.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.