doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.31k stars 856 forks source link

half life 2 april 2022 beta do not work with -vulkan setting(use dxvk) #2816

Open benni-r1 opened 2 years ago

benni-r1 commented 2 years ago

There need use vulkan because the larger GUI of the april 2022 enhancement (need for 4k play) work only on vulkan. can enable as startup option with -vulkan -gamepadui . -gamepadui enable vulkan and larger GUI

I notice there is Version 1.10.3 DXVK and in half life 2 beta attached is only 1.8.1-3

if it help to get it working, can a windows version build from the newest version ?

Software information

Name of the game, settings used etc.

Half life 2 april 2022 beta

System information

Apitrace file(s)

Log files

logfile d3d9 and screenshot is in this thread https://github.com/ValveSoftware/Source-1-Games/issues/4140

with the intel i5 8600K onboard graphic the screenshot look same. logfile for this i have not

misyltoad commented 2 years ago

If I am honest, I am not sure what the cause is. It works fine for me on NVIDIA + Windows. Are you sure you aren't launching with any weird commands?

benni-r1 commented 2 years ago

yes i am sure. I start it from steam . did you get also this format(textur format ?) warning i have in my logfile ?. "warn: D3D9: VK_FORMAT_D16_UNORM_S8_UINT -> VK_FORMAT_D24_UNORM_S8_UINT " maybe there is something with texture format wrong. maybe the gforce 1030 have no 24 bit format. 24 bit format slow down in theory with slower mem because of mem align.

the gforce 1030 is a older card but it count to the cards nvidia support with their newest 1.3 vulkan

attached are screenshots what i choose half life 2

half life 2 2

Blisto91 commented 2 years ago

Does work when you are not on the beta branch? The new gui works fine for me there with -gamepadui

benni-r1 commented 2 years ago

Does work when you are not on the beta branch? The new gui works fine for me there with -gamepadui

I notice there is now a half life version from 27 august 22 non beta. I activate it but result is same. there is also a nvidia driver update from 08/09/22 i install and do not help

screenshots of my settings . I try diffrent settings do not help. witghout multicore enable too. for test i keep settings to default. for shadow details there is no suggestion . i can only choose middle and low. the settings i choose without vulkan enable

half life 2

Farbkorrektur deaktiviert mean color correction deactivate. this is always switch to off and i can not enable it. I have a color calibrate display with color munky . i dont know wy i can not enable this.

please can you try this setting if they work on your system or a system with a intel onboard graphic ?. intel graphic of i 8600K make same problems

settings (2)

logfile is this

info: Game: hl2.exe info: DXVK: v1.8.1-3-gd3e43ed3 info: Built-in extension providers: info: Win32 WSI info: OpenVR info: OpenXR info: OpenVR: could not open registry key, status 2 warn: OpenVR: Failed to locate module info: Enabled instance extensions: info: VK_KHR_get_surface_capabilities2 info: VK_KHR_surface info: VK_KHR_win32_surface warn: D3D9: VK_FORMAT_D16_UNORM_S8_UINT -> VK_FORMAT_D24_UNORM_S8_UINT info: NVIDIA GeForce GT 1030: info: Driver: 516.94.0 info: Vulkan: 1.3.205 info: Memory Heap[0]: info: Size: 1982 MiB info: Flags: 0x1 info: Memory Type[7]: Property Flags = 0x1 info: Memory Heap[1]: info: Size: 16342 MiB info: Flags: 0x0 info: Memory Type[0]: Property Flags = 0x0 info: Memory Type[1]: Property Flags = 0x0 info: Memory Type[2]: Property Flags = 0x0 info: Memory Type[3]: Property Flags = 0x0 info: Memory Type[4]: Property Flags = 0x0 info: Memory Type[5]: Property Flags = 0x0 info: Memory Type[6]: Property Flags = 0x0 info: Memory Type[8]: Property Flags = 0x6 info: Memory Type[9]: Property Flags = 0xe info: Memory Heap[2]: info: Size: 214 MiB info: Flags: 0x1 info: Memory Type[10]: Property Flags = 0x7 info: Process set as DPI aware info: Device properties: info: Device name: : NVIDIA GeForce GT 1030 info: Driver version : 516.94.0 info: Enabled device extensions: info: VK_EXT_4444_formats info: VK_EXT_custom_border_color info: VK_EXT_depth_clip_enable info: VK_EXT_extended_dynamic_state info: VK_EXT_full_screen_exclusive info: VK_EXT_host_query_reset info: VK_EXT_memory_priority info: VK_EXT_robustness2 info: VK_EXT_shader_demote_to_helper_invocation info: VK_EXT_shader_viewport_index_layer info: VK_EXT_transform_feedback info: VK_EXT_vertex_attribute_divisor info: VK_KHR_create_renderpass2 info: VK_KHR_depth_stencil_resolve info: VK_KHR_draw_indirect_count info: VK_KHR_driver_properties info: VK_KHR_image_format_list info: VK_KHR_sampler_mirror_clamp_to_edge info: VK_KHR_shader_float_controls info: VK_KHR_swapchain info: Device features: info: robustBufferAccess : 1 info: fullDrawIndexUint32 : 1 info: imageCubeArray : 1 info: independentBlend : 1 info: geometryShader : 1 info: tessellationShader : 0 info: sampleRateShading : 1 info: dualSrcBlend : 0 info: logicOp : 0 info: multiDrawIndirect : 0 info: drawIndirectFirstInstance : 0 info: depthClamp : 1 info: depthBiasClamp : 1 info: fillModeNonSolid : 1 info: depthBounds : 1 info: multiViewport : 1 info: samplerAnisotropy : 1 info: textureCompressionBC : 1 info: occlusionQueryPrecise : 1 info: pipelineStatisticsQuery : 1 info: vertexPipelineStoresAndAtomics : 1 info: fragmentStoresAndAtomics : 0 info: shaderImageGatherExtended : 0 info: shaderStorageImageExtendedFormats : 1 info: shaderStorageImageReadWithoutFormat : 0 info: shaderStorageImageWriteWithoutFormat : 1 info: shaderClipDistance : 1 info: shaderCullDistance : 1 info: shaderFloat64 : 0 info: shaderInt64 : 0 info: variableMultisampleRate : 0 info: VK_EXT_4444_formats info: formatA4R4G4B4 : 1 info: formatA4B4G4R4 : 1 info: VK_EXT_custom_border_color info: customBorderColors : 1 info: customBorderColorWithoutFormat : 1 info: VK_EXT_depth_clip_enable info: depthClipEnable : 1 info: VK_EXT_extended_dynamic_state info: extendedDynamicState : 1 info: VK_EXT_host_query_reset info: hostQueryReset : 1 info: VK_EXT_memory_priority info: memoryPriority : 1 info: VK_EXT_robustness2 info: robustBufferAccess2 : 0 info: robustImageAccess2 : 0 info: nullDescriptor : 1 info: VK_EXT_shader_demote_to_helper_invocation info: shaderDemoteToHelperInvocation : 1 info: VK_EXT_transform_feedback info: transformFeedback : 0 info: geometryStreams : 0 info: VK_EXT_vertex_attribute_divisor info: vertexAttributeInstanceRateDivisor : 1 info: vertexAttributeInstanceRateZeroDivisor : 1 info: Queue families: info: Graphics : 0 info: Transfer : 1 info: DXVK: Read 279 valid state cache entries info: DXVK: Using 3 compiler threads info: D3D9DeviceEx::ResetSwapChain: info: Requested Presentation Parameters info: - Width: 3840 info: - Height: 2160 info: - Format: D3D9Format::A8R8G8B8 info: - Auto Depth Stencil: true info: ^ Format: D3D9Format::D24S8 info: - Windowed: true info: Presenter: Actual swap chain properties: info: Format: VK_FORMAT_B8G8R8A8_UNORM info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR info: Buffer size: 3840x2160 info: Image count: 2 info: Exclusive FS: 0 warn: D3D9DeviceEx::SetRenderState: Unhandled render state D3DRS_MULTISAMPLEANTIALIAS info: Presenter: Actual swap chain properties: info: Format: VK_FORMAT_B8G8R8A8_UNORM info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR info: Buffer size: 3840x2160 info: Image count: 2 info: Exclusive FS: 0

benni-r1 commented 2 years ago

can somebody of the developer test if it work on a intel onboard graphic ?. I have i5 8600. if you can see the problem on this maybe can fix then . display look same wrong with -vulkan

Blisto91 commented 2 years ago

You can try with the new release of dxvk 2.0 From the downloaded archive take d3d9.dll from the x32 folder and rename it to dxvk_d3d9.dll and then move it into the bin folder in your Half Life 2 install (overwrite the existing file). Make sure your drivers are relatively up to date.

benni-r1 commented 1 year ago

You can try with the new release of dxvk 2.0 From the downloaded archive take d3d9.dll from the x32 folder and rename it to dxvk_d3d9.dll and then move it into the bin folder in your Half Life 2 install (overwrite the existing file). Make sure your drivers are relatively up to date.

there is since 19 nov a new half life 2 update from steam i notice today. it have same problem . There is newest unreal 5.1 engine release. with that vulkan work as long as i not enable shader model 6. But shader model 6 work on dx12 in unreal 5.1 engine. so no problem with my hardware.

BTW: maybe you think dude just buy a newer GFX card. problem is that there is no newer GFX card without a fan because i need silent PC for music.

the gforce 1030 is also good to develop for mobile devices, because they have no faster hardware.

the newest half life 2 output only debug.log file with size 0. so no d3d log

maybe this help more to find the problem. I also report the shader model 6 crash with crashlog to unreal develop time. maybe vulkan do not crash and so it show no textures

this is the GFX card i have. it can play half life 2 with more than 30 fps in 4k and many new games too. https://www.asus.com/de/motherboards-components/graphics-cards/asus/gt1030-sl-2g-brk/

Blisto91 commented 1 year ago

The update doesn't change dxvk version on Windows, only Linux. The changelog just doesn't mention this for some reason. So try replacing manually as i suggested above and see if it helps :slightly_smiling_face: Also be sure to update your driver along with it

benni-r1 commented 1 year ago

The update doesn't change dxvk version on Windows, only Linux. The changelog just doesn't mention this for some reason. So try replacing manually as i suggested above and see if it helps 🙂 Also be sure to update your driver along with i

In the bin folder of half life 2 install is no dxvk_d3d9.dll . I try today what you tell and rename and copy the file so there is now a dxvk_d3d9.dll inside bin. It stay same so did not help . I search whole half life 2 for fles that begin with dxvk. there is nothing find before

benni-r1 commented 1 year ago

If I am honest, I am not sure what the cause is. It works fine for me on NVIDIA + Windows. Are you sure you aren't launching with any weird commands?

I install windows 11 on other drive on same hardware and on this it work. there are diffrences in d3d9.log. all other is same. Wy does it on win 10 not load 901 cache entries ?

thats only diffrences.

win 10 log output info: DXVK: Read 392 valid state cache entries win 11 info: DXVK: Read 901 valid state cache entries

the win 10 log output miss the line "info: Setting display mode: 3840x2160@60" at end. so it seems on win 10 the game hang before the message

win 11 output

warn: D3D9DeviceEx::SetRenderState: Unhandled render state D3DRS_MULTISAMPLEANTIALIAS info: Presenter: Actual swap chain properties: info: Format: VK_FORMAT_B8G8R8A8_UNORM info: Present mode: VK_PRESENT_MODE_FIFO_KHR info: Buffer size: 3840x2160 info: Image count: 3 info: Exclusive FS: 0 info: Setting display mode: 3840x2160@60

win 10 output

warn: D3D9DeviceEx::SetRenderState: Unhandled render state D3DRS_MULTISAMPLEANTIALIAS info: Presenter: Actual swap chain properties: info: Format: VK_FORMAT_B8G8R8A8_UNORM info: Present mode: VK_PRESENT_MODE_FIFO_KHR info: Buffer size: 3840x2160 info: Image count: 3 info: Exclusive FS: 0