OptiScaler icon indicating copy to clipboard operation
OptiScaler copied to clipboard

Mip bias override seems to have no effect in Diablo 2 Resurrected

Open aufkrawall opened this issue 9 months ago • 19 comments

I set these options:

; Override value for mipmap lod bias
; -15.0 - 15.0 - Default (auto) is disabled
MipmapBiasOverride=5

; Use a fixed value for lod bias 
; true or false - Default (auto) is false
MipmapBiasFixedOverride=true

; Use override value as scale multiplier 
; true or false - Default (auto) is false
MipmapBiasScaleOverride=auto

; Override all textures lod bias (normally only overriding < 0 values)
; true or false - Default (auto) is false
MipmapBiasOverrideAll=true

; Override max anisotropy for textures
; 2, 4, 8, 16 - Default (auto) is disabled
AnisotropyOverride=16

; Override anisotropy and mipmap bias values of shader samplers 
; Might cause image corruption and other issues but could solve override is not working with some games issues
; true or false - Default (auto) is false
OverrideShaderSampler=true

But result is not blurry as expected, instead seems to look like with mip bias =0:

Image

Log:

OptiScaler.7z.zip

aufkrawall avatar Mar 17 '25 10:03 aufkrawall

You need to set minus mip bias for increasing sharpness

cdozdil avatar Mar 17 '25 10:03 cdozdil

Yes, but it's easier to demonstrate with positive values when the option has no effect, as the blurriness usually is more apparent than an increase in texture detail. Using negative values also doesn't increase sharpness in this case.

This is with -2.0 (confirmed in OptiScaler UI with game restart in between) vs. 0, also negative bias has no effect:

Image

Image

aufkrawall avatar Mar 17 '25 11:03 aufkrawall

Hi,

Just find time to check your log, looks like game is not using any negative bias values at all. Could you try setting MipmapBiasOverrideAll=true to force override all lod bias values.

cdozdil avatar Mar 17 '25 11:03 cdozdil

Yeah, the game doesn't adjust mip bias with DLSS and indeed the displayed mip bias value in OptiScaler's OSD doesn't change without MipmapBiasOverrideAll=true . However, I already did that, which is why in the screenshot above, it reports Current: 5.0 / 5.0 . :)

aufkrawall avatar Mar 17 '25 11:03 aufkrawall

However, I already did that, which is why in the screenshot above, it reports Current: 5.0 / 5.0 . :)

Ah log is from OverrideAll=true?

cdozdil avatar Mar 17 '25 11:03 cdozdil

Ah log is from OverrideAll=true?

Yep.

aufkrawall avatar Mar 17 '25 11:03 aufkrawall

Could you try the latest Nightly build? There've been some improvements to AF and mipmap overrides.

TheRazerMD avatar Jul 02 '25 19:07 TheRazerMD

It still seems to have no effect in Diablo 2 Resurrected, also after a game restart positive values don't make textures more blurry and negative values don't make them more detailed:

Image

aufkrawall avatar Jul 03 '25 13:07 aufkrawall

Could you try with the latest 0.9-pre4 build? We've received multiple comments about 0.9-pre4 fixing AF and broken lighting in Death Stranding for example, so mip map bias should also be improved technically as it was a part of that revamp. Will probably require a game restart to apply.

TheRazerMD avatar Sep 25 '25 07:09 TheRazerMD

Unfortunately no change, both positive and negative seem to not get applied, even after restart.

aufkrawall avatar Sep 25 '25 13:09 aufkrawall

Is it specifically just this game that's problematic or does it also not work on other games?

TheRazerMD avatar Sep 25 '25 13:09 TheRazerMD

Will test a number of games later. I can recall it worked in some games, but not in others. E.g. it also didn't work in Tiny Tina Wonderlands the last time I tried some months ago, which, like D2R, also doesn't apply LOD bias adjustment on its own with upscaling.

aufkrawall avatar Sep 25 '25 13:09 aufkrawall

It works in Hitman 3.

aufkrawall avatar Sep 26 '25 12:09 aufkrawall

It also works in Strange Brigade DX12. Which is cool, since the game doesn't even support other upscalers. But not with its Vulkan renderer (probably unrelated and just not implemented for Vulkan, including forced AF?).

aufkrawall avatar Sep 26 '25 13:09 aufkrawall

Also works in Wonderlands now - nice progress. :)

aufkrawall avatar Sep 26 '25 14:09 aufkrawall

Comparison in Diablo 2R with mip bias of -1.9 via current OptiScaler vs. -1.875 via Nvidia driver (terrain texture too blurry with OptiScaler adjustment):

Image

Image

aufkrawall avatar Sep 26 '25 18:09 aufkrawall

Wonder what's D2R doing different there. Does SpecialK work by any chance?

TheRazerMD avatar Sep 26 '25 21:09 TheRazerMD

SpecialK makes the game hang before intros.

aufkrawall avatar Sep 26 '25 21:09 aufkrawall