Insane-Shaders icon indicating copy to clipboard operation
Insane-Shaders copied to clipboard

Performance mode causes SharpContrast.fx to not compile

Open deton24 opened this issue 2 years ago • 1 comments

As above. It shows the name of the shader with red font and it doesn't work. When I turn off performance mode in Reshade, it works. Reshade 5.0.2

If it has something to do with the issue: Far Cry x64 https://sfx.thelazy.net/games/preset/11911/

deton24 avatar Mar 09 '22 01:03 deton24

I think that I have determined that it has to do with the fact that SharpContrast makes use of quite a few registers, and when performance mode is enabled it pushes it over the edge in terms of the number of registers being used due to the compiler trying to make additional optimizations with the sliders becoming constants. I'll look into refactoring it to prevent this (and hopefully improve performance) when I have more time.

LordOfLunacy avatar Mar 21 '22 21:03 LordOfLunacy