Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


one file of effects question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

Posted 06 May 2013 - 03:25 AM

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

 



Sponsor:

#2 Yourself   Crossbones+   -  Reputation: 1145

Like
0Likes
Like

Posted 06 May 2013 - 03:59 AM

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



#3 Juliean   GDNet+   -  Reputation: 2692

Like
0Likes
Like

Posted 06 May 2013 - 04:05 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS