ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

Windows 7 -vulkan does not work. #5782

Closed Jeffonehundred closed 4 months ago

Jeffonehundred commented 4 months ago

Vulkan does not work at all. Attempt to start the game with "-vulkan" causes nothing to happen. Steam shows the green play button, then shows the blue cancel button, then the blue stop button. Then it just shows the green play button. There is no message, no warring, or any indication at all that the game started.

Jeffonehundred commented 4 months ago

I have tested Vulkan working on a Gtx 1070 gpu. I used this program "https://github.com/skeeto/vulkan-test" along with other games that run Vulkan natively.

ChampionCynthia commented 4 months ago

TF2 uses DXVK 2.x for Vulkan, which requires Vulkan 1.3.

The latest driver for the NVIDIA GTX 1070 on Windows 7 is version 474.89, which doesn't support Vulkan 1.3.

To use Vulkan with TF2, you'll need to upgrade to Windows 10/11 or switch to Linux.

Jeffonehundred commented 4 months ago

DXVK

Oh, so its just using that emulator? I thought it was native Vulkan support. Why is your reply not mentined anywhere? Not even the Tf2 wiki? Someone should mention that the Vulkan stratup command only uses Dxvk, and does not use Vulkan natively.

Also, @ChampionCynthia Thank you for your reply, it does help explain why the issues happens.

kisak-valve commented 4 months ago

Hello @Jeffonehundred, @ChampionCynthia assessment is accurate. This driver series does not provide Vulkan 1.3 which is required for the DXVK translation layer to work.

Closing as a system / video driver issue. (Vulkan 1.2.174 https://vulkan.gpuinfo.org/displayreport.php?id=26697)

metapea commented 4 months ago

Hello @Jeffonehundred, @ChampionCynthia assessment is accurate. This driver series does not provide Vulkan 1.3 which is required for the DXVK translation layer to work.

Closing as a system / video driver issue. (Vulkan 1.2.174 https://vulkan.gpuinfo.org/displayreport.php?id=26697)

Will you update the requirements for tf2 or add VulkanRT. Since Vulkan 1.3 can be install in windows 7 with VulkanRT and a supported GPU like GTX 1070.

kisak-valve commented 4 months ago

Hello @metapea, you've linked a Windows 10 driver install which is a year and a half newer than the 474.xx legacy video driver release series which is available for Windows 7. This does not make a compelling argument.

ChampionCynthia commented 4 months ago

Hello @Jeffonehundred, @ChampionCynthia assessment is accurate. This driver series does not provide Vulkan 1.3 which is required for the DXVK translation layer to work. Closing as a system / video driver issue. (Vulkan 1.2.174 https://vulkan.gpuinfo.org/displayreport.php?id=26697)

Will you update the requirements for tf2 or add VulkanRT. Since Vulkan 1.3 can be install in windows 7 with VulkanRT and a supported GPU like GTX 1070.

Currently, TF2 still uses DirectX 9 by default on Windows. Vulkan is not a requirement to play the game in any way. Moreover, Vulkan support on a given system is tied to the graphics driver, not VulkanRT. The latest driver for the NVIDIA GeForce GTX 1070 card for Windows 7 is currently 474.89 and doesn't provide Vulkan 1.3 support for that card. As @kisak-valve pointed out, the report you linked is tied to the driver 552.22 which is only available for Windows 10 and later.

You need Windows 10/11 or Linux to run TF2 with the DXVK translation layer on an NVIDIA GeForce GTX 1070.

As much as I appreciate your commitment to Windows 7, support for it was dropped, similarly to the Mac versions which are also out-of-support. To keep playing TF2 on your current configuration until Steam ceases to function entirely on that platform, you will have to stick with DirectX 9.

metapea commented 4 months ago

Hello @metapea, you've linked a Windows 10 driver install which is a year and a half newer than the 474.xx legacy video driver release series which is available for Windows 7. This does not make a compelling argument.

The reason why i added that display report was because it was frame of reference (pre ChampionCynthia comment) for installing Vulkan 1.3, because for some GPUs like a GTX 650 can only go up to Vulkan 1.2 even with an OS like windows 11. While something newer like 1070 can install Vulkan 1.3 with VulkanRT, it just that 474.xx legacy video drivers didn't update or shipped with 1.3. You just need to make sure it's runs Vulkan 1.3 in general for installing VulkanRT is what i was saying.

Moreover, Vulkan support on a given system is tied to the graphics driver, not VulkanRT.

That's ashamed, it would've been a good work around. Maybe some else can make a redirect for VulkanRT and see if that works because Vulkan 1.3 can be installed.

Jeffonehundred commented 4 months ago

good work around

I do not think this. I would rather have the game work nativity, rather then using an vulkan emulator, emulating a direct x environment.

metapea commented 4 months ago

good work around

I do not think this. I would rather have the game work nativity, rather then using an vulkan emulator, emulating a direct x environment.

I'm i was talking about just directly installing VulkanRT being what would have been a good work around. Not the redirect part if that's what you're referring to. I didn't say anything about emulation on that part.

ChampionCynthia commented 4 months ago

Before further confusion,

@Jeffonehundred's reference to "emulation" is about the DXVK translation layer. TF2's Vulkan implementation is actually done using DXVK which translates the game's original DirectX calls to Vulkan. It is actually "translation" rather than "emulation". The game doesn't have an actual Vulkan renderer like the OP would prefer.

@metapea talks about the actual system that runs Vulkan by mentioning the use of VulkanRT as a workaround for the NVIDIA drivers on Windows 7 not meeting the minimum requirements of DXVK. However, this is not possible.

MasterSlenderTR commented 4 months ago

I found a workaround for forcing -vulkan on Windows 7.

1) Download last version of DXVK compatible with Win7 https://github.com/doitsujin/dxvk/releases/tag/v1.10.3 2) Drag d3d9.dll from dxvk archive into \steamapps\common\Team Fortress 2\tf 1 3) Rename original dxvk_d3d9.dll to dxvk_d3d9.dll.old (or delete it) 4) Rename d3d9.dll to dxvk_d3d9.dll 2 5) Launch the game with "-vulkan" 3 6) Profit. Capture Capturee

Note: For this method to work, you need to be using 32-bit executable of Team Fortress 2. The easiest way to do that is you delete new tf_win64.exe, rename old tf.exe to tf_win64.exe, then launch the game using steam.

Jeffonehundred commented 4 months ago

Progress was made here for getting the vulken startup command to work. https://github.com/ValveSoftware/Source-1-Games/issues/5662#issuecomment-2067804252 https://github.com/ValveSoftware/Source-1-Games/issues/5662#issuecomment-2067776584 But its not as complete as @MasterSlenderTR has does here.

metapea commented 4 months ago

Note: For this method to work, you need to be using 32-bit executable of Team Fortress 2. The easiest way to do that is you delete new tf_win64.exe, rename old tf.exe to tf_win64.exe, then launch the game using steam.

Nice, also thanks for the tip with tf_win64.exe. Again, There's no command to launch the 32-bit far as i know. I had that in my mind since does dxvk/releases/tag/v1.10.3 works on some windows 10 games, only been reminded a while ago that dxvk is being used and didn't take in that tf2 is using 100% dxvk and you can just replace the .ddl for some reason.

Jeffonehundred commented 4 months ago

There's no command to launch the 32-bit far as i know.

Right as you had just helped me, @instafixer just made a command "https://github.com/ValveSoftware/Source-1-Games/issues/5674#issuecomment-2067798708" you should check it out, it launches the 32 bit vision with the usual bugs. Thank you for the fix with vulkan , i'll try this out just to make sure in case something happens later on.