diff options
| author | 2026-04-04 23:21:36 +0800 | |
|---|---|---|
| committer | 2026-04-04 23:21:36 +0800 | |
| commit | 0c77fd0c210f0f7578b94f8f177b40471b28e721 (patch) | |
| tree | f3b575df1d6afe23ec6c5fee4852c71bccd0b7de /package.json | |
| parent | e5f94912615e69c32c353fd6a63790e9b16685e4 (diff) | |
| download | DropOut-0c77fd0c210f0f7578b94f8f177b40471b28e721.tar.gz DropOut-0c77fd0c210f0f7578b94f8f177b40471b28e721.zip | |
## 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 'package.json')
0 files changed, 0 insertions, 0 deletions