is there a way to load shaders faster?

Started by
0 comments, last by InvalidPointer 12 years, 3 months ago
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 ?
Advertisement
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.

This topic is closed to new replies.

Advertisement