Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[HL2] [Linux] Glitched shadows on native Linux version

Open DenAkimov opened this issue 1 year ago • 14 comments
trafficstars

Distribution: Linux Mint 22 Cinnamon Kernel: 6.8.0-48-generic GPU: Geforce RTX 3050 GPU driver: 560.35.03-0ubuntu0~gpu24.04.4

Issue is not present when running 20th anniversary through Proton or when running the steam_legacy version natively.

20241116184656_1

Video: https://streamable.com/avq8g7

DenAkimov avatar Nov 16 '24 16:11 DenAkimov

~~Might be the same as https://github.com/ValveSoftware/Source-1-Games/issues/6540.~~

Is the issue also present when using -vulkan?

NotHyper-474 avatar Nov 16 '24 16:11 NotHyper-474

Yes, using vulkan launch command doesn't fix the issue.

DenAkimov avatar Nov 16 '24 17:11 DenAkimov

20241116233102_1 I have been getting the same issue with shadows from certain objects.

https://github.com/user-attachments/assets/1dfbcde9-dbd5-4064-ad69-4c52f4b6ab96

https://github.com/user-attachments/assets/58153ae6-0bc1-4266-95fb-1b903ef8a21a

jyetcv avatar Nov 17 '24 04:11 jyetcv

Noticable on NPC faces too. I think this happens even on the legacy version while using -vulkan, can't remember.

vide0hanz avatar Nov 17 '24 08:11 vide0hanz

20241116233102_1 I have been getting the same issue with shadows from certain objects.

I have exactly the same bug on my machine. I've got an AMD rx590 gpu.

pseregiet avatar Nov 17 '24 12:11 pseregiet

Worth noting this happens on Steam Deck too, latest stable OS/Client. Verified it was using the Linux runtime (scout) for good measure.

vide0hanz avatar Nov 18 '24 20:11 vide0hanz

Same issue here, I assume it's maybe using Vulkan by default now? Perhaps try to use ol' reliable OpenGL renderer, I think it's -gl or -ogl. Might(?) be slower, but I doubt anyone's PC that's already Vulkan compatible struggles with Half Life 2 much

nonetrix avatar Nov 26 '24 02:11 nonetrix

Same issue here, I assume it's maybe using Vulkan by default now? Perhaps try to use ol' reliable OpenGL renderer, I think it's -gl or -ogl. Might(?) be slower, but I doubt anyone's PC that's already Vulkan compatible struggles with Half Life 2 much

Source games generally show the current renderer in the window title so I can confirm the default is still OpenGL.

NotHyper-474 avatar Nov 26 '24 15:11 NotHyper-474

I had this bug on OpenGL at least 6 months before the 20th anniversary update (specifically those weird shadows from the car and train on the coast bridge), and I still have the bug if I switch to steam_legacy, so I'm not sure that any recent updates would be the root cause.

d07434b2c08f avatar Dec 02 '24 03:12 d07434b2c08f

If it's older this issue could be duplicate, but I didn't find any in my limited search

nonetrix avatar Dec 02 '24 05:12 nonetrix

Currently having the same issue, isn't this odd considering hl2 is specifically targeting linux for the steamdeck?

CelDaemon avatar Dec 02 '24 11:12 CelDaemon

Same issue here, I assume it's maybe using Vulkan by default now? Perhaps try to use ol' reliable OpenGL renderer, I think it's -gl or -ogl. Might(?) be slower, but I doubt anyone's PC that's already Vulkan compatible struggles with Half Life 2 much

I think the main issue to be aware of with this is that it uses the old openGL translation layer, which can result in some stuttering on a fresh playthrough. I think I remember having some weird issues w/ vsync using that one as well, at least on xorg. If I remember correctly, it's similar to how -vulkan is actually using dxvk-native under the hood, at least that's what it used the last time I checked anyway.

vide0hanz avatar Jan 26 '25 22:01 vide0hanz

I'm having those glitches on my Steam Deck as well. Especially visible on the buggy section of the game.

stochmalm avatar Jan 30 '25 14:01 stochmalm

Adding -vulkan to the launch option actually fixed it for me. I'm on Nobara Linux 42 on AMD GPU

dotPinto avatar May 24 '25 21:05 dotPinto