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 ?
1 reply to this topic
Members - Reputation: 1433
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.