cdozdil/OptiScaler

alternate CAS as found in SweetFX feasible to avoid RCAS artifacts?

Closed this issue ยท 14 comments

When applying RCAS with high strength, it can cause weird artifacts (as described in Config.md). The CAS shader in ReShade SweetFX can apply quite strong sharpen with e.g. a strength of 2.0, but doesn't seem to have this issue. Which is why I wonder if applying CAS like that could be feasible inside OptiScaler too?

Hi,

Funny thing is we started with CAS, because of these artifacts I have adapted RCAS (which prevented these issues.

Need to update issues page ๐Ÿ˜Š

With high RCAS sharpen strength, I'm getting weird bright image areas:

witcher3_2024_08_02_12_13_57_446

Seems to be more distinct with FSR 3.1 than with XeSS. This doesn't occur with the SweetFX shader via ReShade.

I have used this shader as referance, could you check if it's producing similar issues?

https://github.com/RdenBlaauwen/RCAS-for-ReShade/blob/main/RCAS.fx

The issue does not occur with that RCAS shader used in ReShade.

Hi,

Could you try this build?

nvngx.zip

It doesn't seem to occur with this build, but the sharpen effectiveness of RCAS also seems to be reduced to (almost?) non-existent.

Hi,

I just checked on some games on my notebook, RCAS seems to be working?

Yeah, however with that new build, it looks way softer than RCAS via ReShade at the same strength:

witcher3_2024_08_03_10_36_03_447

witcher3_2024_08_03_10_36_26_858

Hi,

Thanks for pointing this out, I found a mistake on my shader code (multiplied with denoise value twice).
Could you check if this build fixes the issue?

nvngx.zip

Thanks! They are closer to each other now (I also forgot to re-enable the denoiser in the ReShade shader for the previous screenshots...), but I think ReShade is still a tad sharper?

witcher3_2024_08_03_16_36_21_731

witcher3_2024_08_03_16_37_22_772

The ReShade shader also allows to enter a sharpen strength of up to 1.3 (I used 1.0 though), maybe that would be the cheapest way to get to higher sharpen strength in OptiScaler? ๐Ÿธ As FSR 3.1 also is quite soft.

Yeah, that was in my mind too. I will check and adapt it later today ๐Ÿ‘๐Ÿป

Ok, prepared another test build.

nvngx.zip

Thanks, it definitely works now to get higher sharpen without the previous artifacts! :)
If I were nitpicky, I'd say the shader via ReShade still sharpens the image a bit more evenly. But you probably have far more exciting stuff on your agenda. Thanks again!

Thanks for helping me to sort out this issue ๐Ÿ‘