Skip to content
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

[Question] How can I use it in windows 10 ? #63

Closed
Milor123 opened this issue Dec 29, 2021 · 7 comments
Closed

[Question] How can I use it in windows 10 ? #63

Milor123 opened this issue Dec 29, 2021 · 7 comments

Comments

@Milor123
Copy link

Hi guys, i am currently use DXVK in windows using the same that uses in linux for many games and help me too much, games newers like World war 3 (WW3) but in some cases i would like get more perfomance

Could I use it library in some games in windows 10? What should i do to try?

I aprovech for do a question out of this thread, is about of the new NATIVE library of DXVK for windows, it not work well for me in somegames, i prefer use the linux libraries

https://github.com/Joshua-Ashton/dxvk-native/releases/ (it work bad for my windows)
What should i use? Can i combine it or the original DXVK with your NVAPI libraries?

Please help me, DXVK its great for me and allow me play in 60 fps or more with high or ultra settings in many games with my low specs gtx 1050ti and i7 4790k.

Thank u very much guys !!!!

@jp7677
Copy link
Owner

jp7677 commented Dec 30, 2021

Hi. This depends on the game/application.
If the game tries to find its dependencies in the working directory (usually the directory where the executable is) first, you can just place the nvapi.dll / nvapi64.dll in the working directory and it will be used instead of NVIDIA’s nvapi dlls. This is the same with DXVK.
If the game tries to find the nvapi dlls only in the system folders or directly from the location of the NVIDIA installer, then there is nothing you can do. Well, you could replace your nvapi dlls in the system folders, but I would strongly advice against it, this would be a pretty good way to break your system.

@jp7677
Copy link
Owner

jp7677 commented Dec 30, 2021

About dxvk-native, from my understanding this project is for porting applications to Linux (native is native-Linux in this case), so not anything that is supposed to be used on Windows.

@SveSop
Copy link
Contributor

SveSop commented Dec 30, 2021

@Milor123
Using dxvk-nvapi in windows on a actual nvidia adapter would be rather pointless if you ask me. All this project is trying to do is emulate what the ACTUAL nvidia library is doing in windows. Why would you replace native nvidia made nvapi/nvapi64 with this "hack" when using windows?

DXVK used in Windows does sometimes provide better performance than Windows D3D9/11, so that is worth a try for sure.. but there is absolutely no point in using dxvk-nvapi together with DXVK. Somewhat of an overarching goal of THIS project (DXVK-NVAPI) is to provide the SAME functions as nVidia native windows nvapi library, but falls short in most functions.

@jp7677
Copy link
Owner

jp7677 commented Dec 30, 2021

@Milor123 Using dxvk-nvapi in windows on a actual nvidia adapter would be rather pointless if you ask me. All this project is trying to do is emulate what the ACTUAL nvidia library is doing in windows. Why would you replace native nvidia made nvapi/nvapi64 with this "hack" when using windows?

DXVK used in Windows does sometimes provide better performance than Windows D3D9/11, so that is worth a try for sure.. but there is absolutely no point in using dxvk-nvapi together with DXVK. Somewhat of an overarching goal of THIS project (DXVK-NVAPI) is to provide the SAME functions as nVidia native windows nvapi library, but falls short in most functions.

This is not entirely correct. I'm very certain that you'll need DXVK-NVAPI on Windows when you want to use DLSS or the (albeit not that significant) D3D11 extensions (SetDepthBoundsTest, UAVOverlap) together with DXVK or VKD3D-Prorton on Windows. It is of course pointless to use DXVK-NVAPI without DXVK or VKD3D-Proton or just for the sysinfo entry points.

@jp7677
Copy link
Owner

jp7677 commented Dec 31, 2021

I guess this question has been answered, please feel free to continue this discussion or ask more.

@jp7677 jp7677 closed this as completed Dec 31, 2021
@Milor123
Copy link
Author

@jp7677 @SveSop I am sincerely grateful for your response, thank you for explaining all this to me guys! Now i understand a few more

@SveSop
Copy link
Contributor

SveSop commented Dec 31, 2021

This is not entirely correct. I'm very certain that you'll need DXVK-NVAPI on Windows when you want to use DLSS or the (albeit not that significant) D3D11 extensions (SetDepthBoundsTest, UAVOverlap) together with DXVK or VKD3D-Prorton on Windows. It is of course pointless to use DXVK-NVAPI without DXVK or VKD3D-Proton or just for the sysinfo entry points.

I did not think it would not work, but you seem to be correct in that. I cant test for DLSS as i have a GTX970 card in my Win10 box, but i did test for NvAPI_D3D11_SetDepthBoundsTest in the MHO Benchmark. It uses D3D11 and SetDepthBoundsTest, and in wine/linux it yields around 1-2% increase to use dxvk-nvapi. Mostly within the margin of error, but nevertheless.

I tested the following in Windows 10:

DXVK(dxgi.nvapiHack = True) (Will fake AMD card and not use nvapi)
Score: 12826 - max: 58.3 min: 17.4

DXVK(dxgi.nvapiHack = False) + native nvapi
Score: 9822 - max: 44.8 min: 17.9

DXVK(dxgi.nvapiHack = False) + dxvk-nvapi
Score: 12918 - max: 58.7 min: 26.3

Native D3D11 + native nvapi
Score: 15214 - max: 69.2 min: 22.9

So it does seem as if you use nVidia native nvapi with DXVK when SetDepthBoundsTest is used, it will yield a worse performance (the reason the dxgi.nvapiHack setting came about in the first place, due to spamming non-working calls of this function will cause slowdowns). Using dxvk-nvapi gave a minor increase (wee bit less than 1%) over faking an AMD card, and i would say it is somewhat the same as i have seen in wine/linux

Native D3D11 beat DXVK for that particular benchmark, but that is not the case for all games/apps tho.

@Milor123
I guess you just have to test on a per-game basis. I would however not think any resources will go into getting DXVK/vkd3d-proton optimized for windows 10 usage in particular tho, and i think the general stance on bug reports regarding Windows 10 usage of said libs usually ends up with "well, im sorry, but it is not really meant for that" 😄

Feel free to test a DLSS use-case aswell if any of you have the option... confirmation is always nice even if Jens most likely is correct in that instance aswell 😃

Happy newyears!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants