Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Too many surfaces bad?


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   -  Reputation: 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?

Sponsor:

#2 mason   Members   -  Reputation: 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   -  Reputation: 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   -  Reputation: 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.



PARTNERS