New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
little changes on AF value behavior. #754
Conversation
AF commit means you can't turn off AF in the GUI for Linux. |
@turtleli |
It doesn't. |
74c208f
to
09aa623
Compare
of course you need to replace all uses of the useless checkbox value. Here a quick list.
Code need to depends on MaxAnisotropy instead. Jobs will be done if AnisotropicFiltering dissapears completely. |
e2735d2
to
75b7d72
Compare
done 👍 , please refer to the commit messages for information. |
@@ -307,7 +307,7 @@ bool GSDevice11::Create(GSWnd* wnd) | |||
|
|||
memset(&sd, 0, sizeof(sd)); | |||
|
|||
sd.Filter = sd.Filter = !!theApp.GetConfig("AnisotropicFiltering", 0) && !theApp.GetConfig("paltex", 0) ? D3D11_FILTER_ANISOTROPIC : D3D11_FILTER_MIN_MAG_MIP_LINEAR; | |||
sd.Filter = sd.Filter = theApp.GetConfig("MaxAnisotropy", 1)!=1 && !theApp.GetConfig("paltex", 0) ? D3D11_FILTER_ANISOTROPIC : D3D11_FILTER_MIN_MAG_MIP_LINEAR; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Oh. Browser didn't refresh, didn't see @gregory38 replied. Sounds goods to me. |
cfef381
to
6bd9b20
Compare
Updated with m_gs_max_anisotropy.push_back(GSSetting(0, "Off", "")); as the option for disabling AF in the drop down list and all those other requested stuffs. |
You didn't compile/test your changes. And don't add trailing whitespace. |
nope, I haven't finished it yet. still need to add a commit for reusing the GSDX API functions instead of string duplication for crc hack level. I'll test the changes after finalizing stuffs. |
I've done the CRC in one of my branches. So don't bother doing that. |
@turtleli PR tested and works as intended with the changes. 👍 |
@@ -572,9 +572,10 @@ GLuint GSDeviceOGL::CreateSampler(bool bilinear, bool tau, bool tav) | |||
gl_SamplerParameterf(sampler, GL_TEXTURE_MIN_LOD, 0); | |||
gl_SamplerParameterf(sampler, GL_TEXTURE_MAX_LOD, 6); | |||
|
|||
if (GLLoader::found_GL_EXT_texture_filter_anisotropic && !!theApp.GetConfig("AnisotropicFiltering", 0) && !theApp.GetConfig("paltex", 0)) { | |||
if (GLLoader::found_GL_EXT_texture_filter_anisotropic && (int)theApp.GetConfig("MaxAnisotropy", 0)>1 && !theApp.GetConfig("paltex", 0)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
1ab0b4c
to
0cce918
Compare
0141b37
to
f5132ee
Compare
@turtleli |
GSDevice9.cpp and GSDeviceOGL.cpp have a mix of tabs and spaces for indentation. Use only tabs. |
Fixed the indentation and trailing whitespaces on GSDevceOGL.cpp , I don't see any issues of indentation on GSDevice9.cpp. (if there are any issues, please highlight them on the code). |
@@ -304,6 +301,8 @@ bool GSDevice9::Create(GSWnd* wnd) | |||
|
|||
m_convert.bs.BlendEnable = false; | |||
m_convert.bs.RenderTargetWriteMask = D3DCOLORWRITEENABLE_RGBA; | |||
D3DTEXTUREFILTERTYPE LinearToAnisotropic = theApp.GetConfig("MaxAnisotropy", 0) && !theApp.GetConfig("paltex", 0) ? D3DTEXF_ANISOTROPIC : D3DTEXF_LINEAR; | |||
D3DTEXTUREFILTERTYPE PointToAnisotropic = theApp.GetConfig("MaxAnisotropy", 0) && !theApp.GetConfig("paltex", 0) ? D3DTEXF_ANISOTROPIC : D3DTEXF_POINT; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I'd need to hit the Tab often then :p , Fixed 👍 |
Ok. Will test soon. Side note: You might want to delete some of your unused branches. |
I'll remove the first commit for now, I'll handle it later. the Image does look a bit weird after all :p |
Removes the checkbox of Anisotropic filtering from the GSDX plugin settings, the checkbox was usually used to enable & disable the AF which is not necessary since there is an option in the drop down list for disabling AF. the internal function value of "AnisotropicFiltering" has been replaced with "MaxAnisotropy" for detection. the detection uses the function getconfig("MaxAnisotropy", value) where value 0 means disabled and value is the default value when no value is set in the INI file.
The PR is complete, changed the title relevant to the commits. if there any issues needed to be addressed, please mention. :) |
Second commit message - change 'D3D11_FILTER_ANISOTROPIC' to 'anisotropic filtering'. |
|
Updated the commit message 👍 |
according to some of the internal functions in GSDevice files, Anisotropic Filtering is only done when paltex is disabled. do the same on the GUI for user awareness.
gsdx: little changes on AF value behavior.
Why was it changed from 1x to Off? People should know 1x means no Anisotropic Filtering. :-\ |
Off would make it much more clear for those who don't know 1X is off. |
Fair enough. I still don't understand why the checkbox was removed though. Removing it didn't really improve the layout/spacing of the GSdx Plugin Settings window at all. What it did do was remove a convenience that certain users (such as myself) used. Is there anywhere I can go to lobby to get it put back? :D |
No description provided.