Sign in to follow this  

FragmentLinker?

This topic is 4688 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, My generic game engine is coming along quite nicely now - I'm learning a lot as I make it! I've hit another, not neccesarily problem, but iffy subject. The FragmentLinker. I want to use it because I want to have the user be able to apply post effects to the camera. I thought the best way to do it would be to have a stack of post effects, and then use a fragment linker to link them on the fly. That doesn't look like toooo much of an issue after reviewing the source but... it seems that applied the fragment linker's created shader is applied by setting the VertexShader instance on the Device. Now, I don't have too much of a problem with this - it's just that I normally use the Effects class, and would rather use this. Is there anyway to use an Effect instance without compromising speed? Thanks, - aCiD2

Share this post


Link to post
Share on other sites
The Effects framework had been notorious for being slower than the standard IDirect3DDevice::Set*Shader*() calls in previous versions of the DXSDK. However, I think MS has the bugs worked out now, and it's actually fairly efficient (and it's still easy to use [smile]). To answer your question, I think you'll be fine. I wouldn't worry about it, unless you notice that it really starts degrading your performance.

Share this post


Link to post
Share on other sites

This topic is 4688 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.

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