
How to Enhance Old DirectX Games With DXVK for Windows
| View previous topic :: View next topic |
| Author |
Message |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
Posted: Mon Aug 21, 2023 1:15 pm Post subject: How to Enhance Old DirectX Games With DXVK for Windows |
|
|
How to Enhance Old DirectX Games With DXVK for Windows
(Direct3D 9-11 games)
DXVK is a wrapper, "translating" Direct3D to Vulkan
mostly effective on older games that use a single CPU core -
so DX9 games and only some DX11 games.
More info on forcing games to run on a single CPU core
ImageCFG - Fix old games to run on a Single CPU core
http://hookedonpirates.com/forums/viewtopic.php?t=8651
Vulcan Info
https://en.wikipedia.org/wiki/Vulkan
https://thatonegamedev.com/cpp/opengl-vs-vulkan/
How to Enhance Old DirectX Games With DXVK for Windows
(Direct3D 9-11 games)
Originally created for Linux, DXVK can also help you "fix" old games on Windows, and boost their performance. Here's why and how.
https://www.makeuseof.com/dxvk-windows-guide/
BY
ODYSSEAS KOURAFALOS
JUL 26, 2023
...
Using DXVK on Windows is easy, since there is nothing to tweak or configure.
You only have to download it, extract it into a game's correct folder,
and it's ready to go.
(Vulkan Runtime for Windows required, if not already installed,
Runtime Link Further Below)
However, you have to use the correct DXVK version that matches the Direct3D version used by your game.
(32-bit & 64-bit versions included with DXVK for DirectX 9-11)
Store the downloaded archive somewhere, for you will need to extract its contents to the folder of every game you want to run with DXVK instead of Direct3D.
How to Choose the Correct DXVK Version
If you need to know which version of Direct3D your game is using,
the PC Gaming Wiki website can help.
Visit PC Gaming Wiki
https://www.pcgamingwiki.com/wiki/Home
Search on the Game and see the Graphical API Listed,
should report the DirectX version used
Another useful site is
https://www.mobygames.com/
Search on the Game
Typical lists the Game Requirements Specifications
See article link for full Info
---------------------------
Vulkan-based translation layer for Direct3D 9-11 games
DXVK
Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine
https://github.com/doitsujin/dxvk
DXVK Mirror
https://sourceforge.net/projects/dxvk.mirror/
https://www.pcgamingwiki.com/wiki/DXVK
https://www.pcgamingwiki.com/wiki/DXVK#Installation
Installation Instructions included
Direct3D 9 games requires the d3d9.dll file.
Direct3D 10 games requires the dxgi.dll, d3d11.dll and d3d10core.dll files.
Direct3D 11 games requires the dxgi.dll and d3d11.dll files.
(see the DXVK Install Instructions Post by Pirate further below)
Vulkan Runtime for Windows
https://vulkan.lunarg.com/sdk/home
1.3.250.1
29-Jun-2023
---------------------------
For Sid Meier's Pirates (2004)
Current Latest Dxvk v2.2 Recommended
Released 12 May 2023
Fixed a regression when rendering YUY2 or UYUY texture formats.
This fixes in-game videos in Jade Empire and Sid Meier's Pirates
Last edited by corsair91 on Thu Dec 07, 2023 2:07 am; edited 50 times in total |
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
Posted: Mon Aug 21, 2023 1:50 pm Post subject: |
|
|
This is Destroying Our FPS
https://www.youtube.com/watch?v=mtsxlKPMthI
Vex
Aug 21, 2023
runtime 11:20
DirectX 12 could be destroying our FPS. This is for many reasons, but top of which is the API's sheer amount of control that it grants to developers, while at the same time, introducing SO many NEW and graphically demanding features like raytracing. Devs are having to learn faster than ever to adapt and optimize properly. What you think?
Timecodes on youtube page
0:00- Current State of New Games
0:30- The Common Denominator
0:57- DX11 vs DX12 in new games
2:03- How APIs affect games
3:15- DX12 is SUPPOSED to be better
3:53- DX12 Ultimate go brrrrr
5:40- Warning signs
6:43- Inexperience working with DX12
7:35- What about Vulkan?
9:47- We want better
Vex
https://www.youtube.com/@vextakes
User Comments
@hawns3212
Game Developer / Graphics Programmer here.
One of the main issues when switching from D3d11 to 12 is the level of control. In 11 a lot of menial tasks are done for you pre-optimized for the GPU, however in D3d12 you have a lot more control over the fine details of tasks, but the average programmer does not know how to use it efficiently to make the extra control worth while. In addition to that, 11 is also a lot easier to learn because of how much simpler it is.
@darkassasin111
Vulkan coper here, just wanted to point out the enormous gains in 1% lows vs. DX12. In several of the RDR2 examples, the frametime graphs show big spikes in DX12 but not VK. 20+% improvement in the lows is no joke.
I think you're much more likely to notice a few big stutters than ~5% average fps, so I use Vulkan/DXVK pretty much wherever possible
@acuteaura
With DX12, you can treat the GPU like a console, squeezing out every inch of performance. But barely anyone seems to be putting in that effort.
@Barkebain
Video game optimization was something we took for granted, but that's no longer the case. The reason game optimization took place was that the video game was the product. Today the product is the monetization platform, and the video game elements added to that platform are seen as an expense to be minimized. When the product was a video game, optimizing that product was considered a valid expense. When the product is a monetization platform, clearly that's not the case.
Note
DirectX 11 games on DirectX12 is emulated using D3D11On12
which internally converts directx11 calls to directx12 calls
DirectX 9 games on DirectX12 is emulated using D3D9On12
which internally converts directx9 calls to directx12 calls
https://en.wikipedia.org/wiki/DirectX
https://en.wikipedia.org/wiki/Direct3D
DirectX 11.3 is included with Windows 10
DirectX 12 is included in Windows 10 (2015)
DirectX 12 is included in Windows 11 (2021)
(DirectX 12 Graphics Card required)
Last edited by corsair91 on Sat Sep 16, 2023 10:21 am; edited 2 times in total |
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
Posted: Wed Aug 23, 2023 10:56 am Post subject: |
|
|
A guide to DXVK on Windows
https://www.reddit.com/r/pcgaming/comments/mlfcsc/a_guide_to_dxvk_on_windows/
DXVK on Windows?
https://www.reddit.com/r/wine_gaming/comments/letd8p/dxvk_on_windows/
...
D3D9 games are often faster because the D3D9 Windows drivers have gotten quite slow in recent years.
It also sometimes outperforms AMD's D3D11 driver because AMDs drivers arent exactly great. It's very very rare that DXVK outperforms Nvidias D3D11 driver. It's usually much slower instead.
...
Usually if I get the same performance, I get less CPU usage and vastly smoother frametimes. Sometimes, I do get slower performance too
Personally, I'd encourage DXVK in any DX9/10/11 game you have. It's usually a better experience, rarely a downgrade. |
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
Posted: Wed Aug 23, 2023 11:18 am Post subject: |
|
|
How to Install DXVK on Windows
https://www.youtube.com/watch?v=9zIwdUdn8xs
Strayfu
https://www.youtube.com/@strayfu
Games Examples:
Grand Theft Auto IV
Assassin's Creed Unity
Bright Memory Infinite
Time Codes
00:00 He's got that.
0:10 STEP 1: Download DXVK
0:34 STEP 2: Install DXVK
2:07 STEP 3(Optional) Install MSI Afterburner
2:23 STEP 4: Launch the game
2:27 Testing GTA 4
4:12 Testing AC Unity
7:41 Testing Bright Memory Infinite
9:50 End
Note: Unreal Engine 4 games will not launch with DXVK if you have Shadowplay Overlay enabled, so disable it at startup, and enable it ingame in case you want to record with it, as for MSI Afterburner overlay some games might crash, sometimes at startup so you can disable it at startup and enable it ingame, sometimes even that doesn't work, something to keep in mind.
If you're talking about using Async instead of the standard DXVK it doesn't need an Howto Install video, you just have to take DXVK Async and it's the same process of installing the standard DXVK
Dxvk async will use asynchronous shader compilation, resulting in less stutters during shader compilation, dxvk standard will stutters a lot more but the performance gains will be bigger, so I'd suggest using dxvk if you can find a shader cache already compiled for the game you intend using, and if there's none, dxvk async will be the better option for a smoother experience
if you use the regular DXVK Play the game out for a good 10 to 15 minutes. Let the shaders compile, the performance still be on par with dxvk-asynce
the performance is the same between dxvk and dxvk-async.
the reason why dxvk-async isnt in the main dxvk repo is because in some games it's detected by anti cheats
DXVK is still just an injector that hooks into the executable
Links
DXVK:
https://github.com/doitsujin/dxvk/
DXVK-ASYNC
https://github.com/Sporif/dxvk-async/
dxvk-async could theoretically trigger client-side anti cheats,
and as such, may be risky to use inside of multiplayer games.
MSI Afterburner:
https://www.msi.com/Landing/afterburner/graphics-cards
Last edited by corsair91 on Fri Aug 25, 2023 12:08 pm; edited 4 times in total |
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
Posted: Wed Aug 23, 2023 11:24 am Post subject: |
|
|
DXVK on Windows: Black Magic? Four Games Tested
https://www.youtube.com/watch?v=Ims0NDTCasA
Enable Youtube CC captions may be helpful
oakenglass
https://www.youtube.com/@oakenglass
ATTENTION!
Never use DXVK in multiplayer games.
I take no responsibility in case you get banned.
Chapters:
00:00 WTF is DXVK?
00:33 Simple Installation
01:05 Shader Compilation
01:33 Grand Theft Auto IV
02:19 Crysis (Original)
02:52 Just Cause 2
03:34 AC: Origins
04:18 Conclusion
Useful Link:
-DXVK by Doitsujin
https://github.com/doitsujin/dxvk
User comments
max fps very silly metric which tells you nothing
about the experience of playing a game.
Lows are what matter.
Last edited by corsair91 on Thu Aug 24, 2023 2:00 pm; edited 1 time in total |
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Fri Aug 25, 2023 4:02 am Post subject: |
|
|
To enhance old DirectX games with DXVK for Windows, follow these steps:
1. Install DXVK: Start by downloading the latest release of DXVK from the official GitHub repository (https://github.com/doitsujin/dxvk/releases). Choose the version that matches your system architecture (32-bit or 64-bit). Extract the downloaded files to a location of your choice.
2. Locate the game's executable: Find the main executable file of the DirectX game you want to enhance. This file usually has a ".exe" extension and is located in the game's installation folder.
3. Create a DXVK configuration file: Open a text editor and create a new file named "dxvk.conf". Save this file in the same directory as the game's executable. In this configuration file, you can tweak various settings to optimize DXVK for your game. Refer to the DXVK documentation (https://github.com/doitsujin/dxvk/wiki/Configuration) for available options and their usage.
4. Enable DXVK for the game: Open a command prompt window and navigate to the directory where you extracted DXVK in step 1. Use the "cd" command to change directories. For example, if you extracted DXVK to "C:\DXVK", use the command: `cd C:\DXVK`
5. Run the game with DXVK: In the command prompt window, enter the following command to run the game with DXVK: `dxvk.exe <path_to_game_executable>`. Replace "<path_to_game_executable>" with the actual path to the game's executable file. For example, if the game's executable is located at "C:\Games\MyGame\Game.exe", use the command: `dxvk.exe C:\Games\MyGame\Game.exe`
6. Configure additional options (optional): If you encounter any issues or want to further optimize DXVK for your game, you can experiment with additional options. These options can be added to the command in step 5. Refer to the DXVK documentation for available options (https://github.com/doitsujin/dxvk/wiki/Configuration).
By following these steps, you should be able to enhance old DirectX games using DXVK for Windows. DXVK translates DirectX calls to Vulkan, which can improve performance and compatibility for older games. |
|
| Back to top |
|
 |
corsair91

Sailing Master 
Posts: 10370 

 
296901 Gold -

more...
|
Posted: Thu Sep 14, 2023 3:58 pm Post subject: |
|
|
An Example DXVK for Far Cry 2 Game
Far Cry 2 - DXVK v.2.2 - Game mod - Download
https://www.gamepressure.com/download.asp?ID=84304
The file DXVK v.2.2 is a modification for Far Cry 2
DXVK is an open-source tool by doitsujin.
https://github.com/doitsujin/dxvk
It’s a Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine. It can also be used to improve performance of older games on Windows and that’s exactly what it does for Far Cry 2.
Instructions:
1.Make sure your GPU is Vulkan-capable and you have installed latest release or beta drivers for it!
2. Download DXVK. Extract the archive. Put d3d9.dll from dxvk-{version}\x32 subfolder to where the game’s exe is. File dxgi.dll from DXVK is optional on Windows as game will work without it and it may cause problems with DXVK 1.8.1 and above.
Disable Vulkan shader caching in the Steam options (the tip contributed by user MiesThies). DXVK must be able to read/write to its state cache file and it is crucial for removing stutters/ |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|