Skip to content

"Make effect parameters inline" option #556

Answered by Blinue
rampaa asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. When applying effects for the first time, they must first be compiled into CSO, which can take several seconds for some effects. Once compiled, they are stored in the cache so they don't need to be compiled again in the future.

By default, parameters are passed to the shaders at runtime. Enabling this option, however, will inline the parameters during compilation, which can help the shader compiler optimize more effectively and reduce the number of parameters passed at runtime, leading to improved performance. The downside of this option is that cache and parameters are bound together, so changing parameters will cause the cache to become invalid and require recompilation.

These are …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rampaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants