Sign in to follow this  
lomateron

performance question

Recommended Posts

lomateron    491

I am rendering to a texture, I am rendering many intances of a vertice that will have different locations in the texture I am going to render to, but then what happens when more than 1 vertice points to the same pixel of a texture, and I have blend enabled, does it loses all the pixel shader parallel performance?

Share this post


Link to post
Share on other sites
Seabolt    781

Not really, since which ever vertex gets interpolated second will have to run after the other pixels in order to blend properly and can't really run in parallel.

Share this post


Link to post
Share on other sites
EWClay    659
Short answer: no. GPUs have many specialised units for different tasks, and even if one part of the process (in this case, the final blended output of multiple quads at the same location) cannot be parallelised, the rest still will be.

Share this post


Link to post
Share on other sites
Jason Z    6434

I am rendering to a texture, I am rendering many intances of a vertice that will have different locations in the texture I am going to render to, but then what happens when more than 1 vertice points to the same pixel of a texture, and I have blend enabled, does it loses all the pixel shader parallel performance?

 

No, not really.  Since there are many shader units, the pixels can be processed in parallel, then passed on to the output merger where they are blended.  This is more or less the same situation as when the pixels aren't overlapping - the OM has to serialize the writing to a particular portion of the render target.

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