Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include DXVK on Linux #49

Open
WinterPhoenix opened this issue Jan 25, 2023 · 5 comments
Open

Include DXVK on Linux #49

WinterPhoenix opened this issue Jan 25, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@WinterPhoenix
Copy link
Collaborator

WinterPhoenix commented Jan 25, 2023

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 WinterPhoenix added the enhancement New feature or request label Jan 25, 2023
@ghost
Copy link

ghost commented May 8, 2023

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)

@JohnPeel
Copy link

JohnPeel commented May 9, 2023

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

@ghost
Copy link

ghost commented May 9, 2023

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

@JohnPeel
Copy link

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

@WinterPhoenix
Copy link
Collaborator Author

Related issue: Facepunch/garrysmod-requests#1905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants