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

Add patch for libcuda.so and implement fix for Star Citizen #136

Merged

Conversation

ProjectSynchro
Copy link
Contributor

This PR adds a function (patch_libcuda) into util.py which patches libcuda.so with the approach seen here: jp7677/dxvk-nvapi#174 (comment)

This may also be useful for other games that over-allocate memory when enabling DLSS (I know this affects Star Citizen but I don't have NVIDIA so I am not aware of other titles that have this issue.)

Additionally this expands #132 by integrating that into the protonfix.

Please let me know if you'd like any changes. Testers are also welcome, I don't have an NVIDIA GPU to test this fix.. but in theory it should work based on my eyeballing of the code.

This could also be moved into umu-starcitizen.py but there may be other affected games this could help with.

This patches libcuda.so with the approach seen here: jp7677/dxvk-nvapi#174 (comment)

This may also be useful for other games that over-allocate memory when enabling DLSS.
…ure patched libcuda for NVIDIA

This expands Open-Wine-Components#132 by implementing the patch that was mentioned, and integrates that into the protonfix.
@ProjectSynchro ProjectSynchro changed the title Libcuda patch Add patch for libcuda.so and implement fix for Star Citizen Sep 20, 2024
util.py Outdated Show resolved Hide resolved
util.py Outdated Show resolved Hide resolved
util.py Show resolved Hide resolved
@ProjectSynchro ProjectSynchro marked this pull request as draft September 21, 2024 23:09
@ProjectSynchro ProjectSynchro marked this pull request as ready for review September 22, 2024 00:23
@ProjectSynchro
Copy link
Contributor Author

Should be good to go now, both for use within and outside of the Linux runtime.

util.py Outdated Show resolved Hide resolved
…andle systems where it's not in the standard PATH.

Additionally use `subprocess.run` with explicit encoding handling to reliably capture `ldconfig` output, addressing potential encoding issues outside the Steam Runtime.
util.py Outdated Show resolved Hide resolved
@R1kaB3rN
Copy link
Member

Overall, this looks ok to me.

@mactan-sc for testing or someone else as unfortunately I do not have a NVIDIA GPU in my system.

@R1kaB3rN R1kaB3rN mentioned this pull request Sep 22, 2024
@the-sane
Copy link

FYI: We've put out a request for testing to our community on the Star Citizen LUG discord. We'll report back with the results.

@GloriousEggroll GloriousEggroll merged commit 2eb7ff9 into Open-Wine-Components:master Sep 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants