mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
fix(launcher,display): fix desktop launcher icon, Alt-Tab grab, and 144Hz camera panning
This commit is contained in:
1 parent
4055f314e9
commit
9d2c23b737
7 files changed
+58
-24
No files matched your search
@@ -2,6 +2,7 @@
|
||||
"""Clear only a dead Darling server's stale PID marker and buffers before startup."""
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
prefix = Path(os.environ.get('DPREFIX', str(Path.home() / '.darling')))
|
||||
@@ -31,6 +32,11 @@ if marker.exists():
|
||||
|
||||
# Only clean up stale Riot temporary files and shared memory frames if the server is NOT running
|
||||
if not server_running:
|
||||
try:
|
||||
subprocess.run(['killall', '-q', 'chrome_crashpad_handler'], check=False)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
try:
|
||||
tmp_dir = prefix / 'private/tmp'
|
||||
if tmp_dir.is_dir():
|
||||
|
||||
@@ -32,7 +32,9 @@ build/riot-host-message-check
|
||||
cc -shared -fPIC -O2 -Wall -Wextra -Wl,-soname,"$project_dir/build/libdarling-xshm.so" tools/m58f299-xshm.c -o build/libdarling-xshm.so.next -pthread $(pkg-config --cflags --libs x11 x11-xcb xcb-shm xext)
|
||||
python3 tools/stop-darling-runtime.py
|
||||
# Host fileports own SCM_RIGHTS descriptors and must die with their last sender.
|
||||
sudo make -C "$project_dir/build/darling-src/build/src/external/darlingserver" install -j12
|
||||
if sudo -n true 2>/dev/null; then
|
||||
sudo make -C "$project_dir/build/darling-src/build/src/external/darlingserver" install -j12
|
||||
fi
|
||||
# Electron's window-visibility correction lives in the AppKit overlay
|
||||
# (NSWindow -occlusionState, cocotron.patch); no Riot binary is modified here.
|
||||
for name in IOSurface OpenGL QuartzCore CoreVideo CoreAudio AudioToolbox CoreGraphics CoreText CoreFoundation Metal; do
|
||||
|
||||
@@ -142,13 +142,14 @@ def main():
|
||||
# 3. Create .desktop file
|
||||
run_script = PROJECT_ROOT / "scripts/run.sh"
|
||||
exec_path = str(run_script).replace("%", "%%")
|
||||
exec_cmd = f'"{exec_path}"' if " " in exec_path else exec_path
|
||||
desktop_content = f"""[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=League of Legends
|
||||
GenericName=MOBA Game
|
||||
Comment=Play League of Legends on Linux with darling-lol
|
||||
Exec="{exec_path}"
|
||||
Exec={exec_cmd}
|
||||
Path={PROJECT_ROOT}
|
||||
Icon=league-of-legends
|
||||
Terminal=false
|
||||
|
||||
@@ -61,6 +61,12 @@ else
|
||||
fi
|
||||
fi
|
||||
# --- darling-lol perf: scheduling & driver latency hints ---
|
||||
# Refresh rate for display link, async presenter, and frame pacing (default 144Hz)
|
||||
export RCLOL_REFRESH_HZ="${RCLOL_REFRESH_HZ:-144}"
|
||||
# Vulkan WSI & Mesa low-latency overrides
|
||||
export MESA_VK_WSI_PRESENT_MODE="${MESA_VK_WSI_PRESENT_MODE:-immediate}"
|
||||
export vblank_mode="${vblank_mode:-0}"
|
||||
export MESA_NO_ERROR="${MESA_NO_ERROR:-1}"
|
||||
# NVIDIA proprietary driver: limit pre-rendered frames.
|
||||
export __GL_MaxFramesAllowed="${__GL_MaxFramesAllowed:-1}"
|
||||
export __GL_THREADED_OPTIMIZATIONS="${__GL_THREADED_OPTIMIZATIONS:-1}"
|
||||
|
||||
Reference in new issue
Block a user