aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.markdownlint.json
diff options
context:
space:
mode:
authorkrypton <bot@hydroroll.team>2026-04-04 23:21:36 +0800
committerGitHub <noreply@github.com>2026-04-04 23:21:36 +0800
commit0c77fd0c210f0f7578b94f8f177b40471b28e721 (patch)
treef3b575df1d6afe23ec6c5fee4852c71bccd0b7de /.markdownlint.json
parente5f94912615e69c32c353fd6a63790e9b16685e4 (diff)
downloadDropOut-0c77fd0c210f0f7578b94f8f177b40471b28e721.tar.gz
DropOut-0c77fd0c210f0f7578b94f8f177b40471b28e721.zip
feat: add NVIDIA Prime environment variables for Linux hybrid graphics (#155)HEADmain
## Summary - Inject __NV_PRIME_RENDER_OFFLOAD=1 and __GLX_VENDOR_LIBRARY_NAME=nvidia environment variables when launching Minecraft on Linux - Enables discrete GPU usage on Linux systems with hybrid graphics (NVIDIA + Intel/AMD) - Only applies on Linux via #[cfg(target_os = "linux")] ## Changes - Modified src-tauri/src/main.rs to inject NVIDIA Prime environment variables before spawning the Java process ## Test Plan - On a Linux system with hybrid graphics (NVIDIA + Intel/AMD), launch the game and verify the discrete GPU is being used - Can check with nvidia-smi or glxinfo to confirm GPU usage Closes #154 ## Summary by Sourcery Inject GPU-related environment variables when launching the game on Linux to support hybrid graphics configurations. New Features: - Enable discrete GPU usage on Linux hybrid graphics systems by setting NVIDIA Prime and AMD DRI_PRIME environment variables before starting the game process. Enhancements: - Log when GPU environment variables are injected on Linux to aid debugging of hybrid graphics setups. --------- Co-authored-by: 简律纯 <i@jyunko.cn> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Diffstat (limited to '.markdownlint.json')
0 files changed, 0 insertions, 0 deletions