Sign in to follow this  
soffan

where's the bottleneck of setting a buffer?

Recommended Posts

soffan    122
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
Muhammad Haggag    1358
- 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
soffan    122
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this