Sign in to follow this  
Followers 0
lomateron

one file of effects question

2 posts in this topic

I have 60 techniques in one .fx file can this cause any problems related to performance?

 

0

Share this post


Link to post
Share on other sites

normally no it doesn't impact performance at all (the shader compiler is very good in eliminating unused code/resources), but you will only be 100% sure if  you profile it

0

Share this post


Link to post
Share on other sites

You shouldn't be worried about performance here, you should rather worry about like how hard it will get to work with these. Word of advice, in my first 3d project I used to have all thats possible in one shader file too, it was mess and extremly aweful to work with after a while. You gotta ask yourself, are these techniques all related to each other? Like different lighting models, etc... ? If not, I'd strongly advice you to split it up. You'll possible save loading time too, since you only have to compile those effects you really need.

0

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  
Followers 0