Sign in to follow this  
lomateron

version of the offline shader compiler

Recommended Posts

lomateron    491

Can I update the version of my compiler?

I am using the offline compiler that came with the "Microsoft DirectX SDK (June 2010)"

 

I have this massive shader effect and I will like to know if there are newer better compilers that can optimize that code

Edited by lomateron

Share this post


Link to post
Share on other sites
lomateron    491

I found it in Program Files (x86)\Windows Kits\8.0\bin\x64

 

I have one question, if I want the fastest code do I have to use /O0 /O1, /O2, /O3?

It says that it "Disables instruction reordering" but I am confused, is /O0 /O1, /O2, /O3 to make debug faster?

it says that /O0 /O1, /O2, /O3 is for optimization, is that optimization for debugging?

I want the fastest code so what do I use  "/O1" or "/Od"?

what other syntax should I use if I want the fastest code?

Edited by lomateron

Share this post


Link to post
Share on other sites
Alessio1989    4634

Sorry, I didn't notice to the section name (so I thought you was talking for the C++ compiler...)..

 

For FXC compiler:

 

- use /Od and /Zi for debugging

- no flag (/O1) for release mode.

Edited by Alessio1989

Share this post


Link to post
Share on other sites

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