GModCEFCodecFix icon indicating copy to clipboard operation
GModCEFCodecFix copied to clipboard

Include DXVK on Linux

Open WinterPhoenix opened this issue 2 years ago • 5 comments

A little bit out of the original scope of this project, but stemming from some discussion on the Discord and in #48.

There's some notable performance gains to be had for GMod on Linux if we make it use DXVK (specifically the Native parts of it in 2.0) instead of the ancient ToGL implementation.

This would require us (probably) shipping the library with GModCEFCodecFix, modifying hl2.sh to add some environment variables, and launching GMod with the -vulkan launch option.

Relevant reading: https://www.reddit.com/r/linux_gaming/comments/xfwoso/the_ultimate_garrys_mod_linux_performance_guide/ https://www.reddit.com/r/linux_gaming/comments/xzzolt/i_got_garrys_mod_native_working_using_dxvknative/

Also this is apparently not working with Nvidia GPUs currently... https://www.reddit.com/r/linux_gaming/comments/xzzolt/i_got_garrys_mod_native_working_using_dxvknative/j4mbl7e

...But @JohnPeel reckons they can write a ToGL library replacement that forwards DirectX commands that would've gone to ToGL, to DXVK, and that should fix that.

WinterPhoenix avatar Jan 25 '23 09:01 WinterPhoenix

Can i ask how far has this come? Because this would be awesome to have! (Because rendering performance sucks, and it will relieve the CPU too to have DXVK)

mr-sihc avatar May 08 '23 12:05 mr-sihc

ToGL isn't an option, and from how they interact with ToGL, using DXVK isn't an option.

JohnPeel avatar May 09 '23 03:05 JohnPeel

oh this is sad.. maybe force load a dxvk.so and dont load togl, and maybe this could work

or this is just another thing that cant work? i think it should

if we can stop togl.so from loading or override it with dxvk

mr-sihc avatar May 09 '23 11:05 mr-sihc

It wouldn't work because ToGL doesn't use the normal DirectX API.

JohnPeel avatar May 11 '23 16:05 JohnPeel

Related issue: https://github.com/Facepunch/garrysmod-requests/issues/1905

WinterPhoenix avatar Jun 25 '23 04:06 WinterPhoenix