Sign in to follow this  

HLSL .fxo question

This topic is 1439 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I used to think the same since i've played battlefield 2, they compiled shaders when a map was first loaded.

But then I found out that they recompile platform specific portions of an ubershader or something.

 

Normally, if your source .fx file doesn't change (and contain no macros that are platform specific), then you don't have to recompile the fxo.

Share this post


Link to post
Share on other sites

Yea, that's true - there can be #define macros that affect the final compiled shader, depending on something what may change from computer to computer (graphics card type) or even user to user (graphics settings).

But since you are asking about your own application, you are the one who will know this. Check your shaders, if the code cannot change anyhow before compilation, then you can simply reuse the fxo file.

Share this post


Link to post
Share on other sites

This topic is 1439 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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