Possible to implement forced anisotropic filtering? #26

Closed
opened 2024-07-27 19:56:16 +00:00 by aufkrawall · 11 comments
aufkrawall commented 2024-07-27 19:56:16 +00:00 (Migrated from github.com)

Since OptiScaler can already force mip map bias, would it be possible to implement forced anisotropic filtering as an optional feature? The AMD D3D12 driver unfortunately still can't force it, and while forcing it may cause issues in some games, it can improve visuals in others where game devs e.g. apply questionable "optimizations" with low anisotropic filtering values for some textures etc.
Thanks!

Since OptiScaler can already force mip map bias, would it be possible to implement forced anisotropic filtering as an optional feature? The AMD D3D12 driver unfortunately still can't force it, and while forcing it may cause issues in some games, it can improve visuals in others where game devs e.g. apply questionable "optimizations" with low anisotropic filtering values for some textures etc. Thanks!
cdozdil commented 2024-07-29 11:34:22 +00:00 (Migrated from github.com)

Hi,

I have prepared a test build for anisotropy overriding. You can force it from nvngx.ini (better use this one) or from in-game menu. If you force it from menu probably need to change resolution or DLSS preset to activate changes.

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

I have tried to limit override to Bilinear, Trilinear and Anisotropic filtered textures but might cause issues with menus and other 2D stuff.

nvngx-force-aniso-test.zip

Hi, I have prepared a test build for anisotropy overriding. You can force it from `nvngx.ini` (better use this one) or from in-game menu. If you force it from menu probably need to change resolution or DLSS preset to activate changes. ```ini [Hotfix] ; Override max anisotropy for textures ; 2, 4, 8, 16 - Default (auto) is disabled AnisotropyOverride=auto ``` I have tried to limit override to Bilinear, Trilinear and Anisotropic filtered textures but might cause issues with menus and other 2D stuff. [nvngx-force-aniso-test.zip](https://github.com/user-attachments/files/16411911/nvngx-force-aniso-test.zip)
aufkrawall commented 2024-07-29 13:32:45 +00:00 (Migrated from github.com)

Thanks a lot for your efforts!

It seems with this build, there already is some issue with mip mapping (?) with default settings:
witcher3_2024_07_29_15_31_01_283

Thanks a lot for your efforts! It seems with this build, there already is some issue with mip mapping (?) with default settings: ![witcher3_2024_07_29_15_31_01_283](https://github.com/user-attachments/assets/a2a75a13-83c8-434c-bc48-234103ecef59)
cdozdil commented 2024-07-29 13:45:48 +00:00 (Migrated from github.com)

Ah yes made a copy/paste mistake, here is the fixed one 😊

And fixed a possible menu crash 😅

nvngx-force-aniso-test-3.zip

Ah yes made a copy/paste mistake, here is the fixed one 😊 And fixed a possible menu crash 😅 [nvngx-force-aniso-test-3.zip](https://github.com/user-attachments/files/16414494/nvngx-force-aniso-test-3.zip)
aufkrawall commented 2024-07-29 14:36:28 +00:00 (Migrated from github.com)

It works now, fantastic. :)

Probably a regression: It always shows the current mip bias as 0, whereas stable build v0.6.5 reports it as -2 with DLSS Performance selected in-game.

It works now, fantastic. :) Probably a regression: It always shows the current mip bias as 0, whereas stable build v0.6.5 reports it as -2 with DLSS Performance selected in-game.
cdozdil commented 2024-07-29 14:43:15 +00:00 (Migrated from github.com)

Yeah, noticed and fixed that after sending you the build 😊

Yeah, noticed and fixed that after sending you the build 😊
cdozdil commented 2024-07-29 16:22:31 +00:00 (Migrated from github.com)
This build should fix it : https://github.com/cdozdil/OptiScaler/actions/runs/10147988156
aufkrawall commented 2024-07-30 10:40:15 +00:00 (Migrated from github.com)

Hm, still shows 0. I've also noticed that saving the aniso value to config file from OSD doesn't work. :)

Hm, still shows 0. I've also noticed that saving the aniso value to config file from OSD doesn't work. :)
cdozdil commented 2024-07-30 22:53:36 +00:00 (Migrated from github.com)

This build should fix both of the issues

https://github.com/cdozdil/OptiScaler/actions/runs/10170882440

This build should fix both of the issues https://github.com/cdozdil/OptiScaler/actions/runs/10170882440
aufkrawall commented 2024-07-31 08:24:03 +00:00 (Migrated from github.com)

Confirmed fixed. :)

Maybe one more nitpick (hope this doesn't get too annoying): When adjusting only the aniso value in OSD and not touching the mip bias bar, I think it shouldn't force mip bias to 0 (both runtime and when writing to config).

Confirmed fixed. :) Maybe one more nitpick (hope this doesn't get too annoying): When adjusting only the aniso value in OSD and not touching the mip bias bar, I think it shouldn't force mip bias to 0 (both runtime and when writing to config).
cdozdil commented 2024-07-31 08:55:41 +00:00 (Migrated from github.com)

Unless you click the set button it won't set mipbias. For anisotropy you don't need to click set, maybe putting anisotropy under set button makes it more obivous 👍

Unless you click the set button it won't set mipbias. For anisotropy you don't need to click set, maybe putting anisotropy under set button makes it more obivous 👍
aufkrawall commented 2024-07-31 10:08:30 +00:00 (Migrated from github.com)

Alright, makes sense. Closing now, thanks a lot! This is such an amazing tool.

Alright, makes sense. Closing now, thanks a lot! This is such an amazing tool.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
roman/OptiScaler2#26
No description provided.