Jump to content

  • Log In with Google      Sign In   
  • Create Account


is there a way to load shaders faster?


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
1 reply to this topic

#1 thedodgeruk   Members   -  Reputation: 124

Like
0Likes
Like

Posted 24 December 2011 - 09:29 AM

i have 20 shaders in 1 fx file

this file can take about 15 seconds to load via D3DX10CreateEffectFromFile, is there a faster way to load a shader.fx file
convert it to another form or something ?

Sponsor:

#2 InvalidPointer   Members   -  Reputation: 1409

Like
1Likes
Like

Posted 24 December 2011 - 09:47 AM

Yes. Precompile it using fxc or D3DCompile() in your own utility and load that instead. That won't help you if most of your time is spent reading from disk, but I'd wager the compilation and optimization's what's killing you in this instance.
clb: At the end of 2012, the positions of jupiter, saturn, mercury, and deimos are aligned so as to cause a denormalized flush-to-zero bug when computing earth's gravitational force, slinging it to the sun.




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