Jump to content
  • Advertisement
Sign in to follow this  
soffan

where's the bottleneck of setting a buffer?

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys! I've heard a lot about that one should use one single vertexbuffer instead of one for each object. But what I don't understand is where (in which call) the bottleneck is. Is it in setstream? I've read a presentation by ATI and they seem to point out that setstreamsource can be used without penalty as long as you use the same buffer. I don't understand this. Where's the penalty? I guess my question is, where is the vertexbuffer actually copied to video memory? I'm new to these sort of things so I thought that someone with a little understanding might be able to explain.

Share this post


Link to post
Share on other sites
Advertisement
- Don't worry a lot about optimization before you have something up and running.

- SetStreamSource might upload the vertex buffer to video memory if it's not already there, so if you use the same buffer it won't give you any penalty.

Share this post


Link to post
Share on other sites
Quote:
Original post by Coder
- SetStreamSource might upload the vertex buffer to video memory if it's not already there, so if you use the same buffer it won't give you any penalty.


This was good news [smile]! Thank you!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!