mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
WIP: Low-latency performance and input latency optimizations
This commit is contained in:
1 parent
68f816deaf
commit
e4f8c67151
14 files changed
+122
-41
No files matched your search
+6
-1
@@ -9,7 +9,12 @@ python3 scripts/prepare.py
|
||||
# so Release's -DNDEBUG trips its "mismatch in debug-ness macros" #error.
|
||||
# x86-64 only: the patched OpenDirectory declares ivars in @implementation, which the
|
||||
# 32-bit (fragile ABI) slice cannot compile, and the macOS client is 64-bit.
|
||||
# darling-lol perf: inject -O3 and -march=native even with empty build type,
|
||||
# so the base Darling runtime is not compiled at -O0. The empty build type
|
||||
# is required by objc4's debug-ness macro check.
|
||||
cmake -S build/darling-src -B build/darling-src/build -G 'Unix Makefiles' \
|
||||
-DCMAKE_BUILD_TYPE= -DTARGET_i386=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_METAL=ON
|
||||
-DCMAKE_BUILD_TYPE= -DTARGET_i386=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_METAL=ON \
|
||||
-DCMAKE_C_FLAGS_INIT="-O3 -march=native -mtune=native -pipe" \
|
||||
-DCMAKE_CXX_FLAGS_INIT="-O3 -march=native -mtune=native -pipe"
|
||||
cmake --build build/darling-src/build --parallel "${JOBS:-$(nproc)}"
|
||||
echo 'Build complete. Install the base runtime with: sudo cmake --install build/darling-src/build'
|
||||
@@ -14,4 +14,9 @@ chmod 1777 "$HOME/.darling/private/tmp"
|
||||
python3 build/runtime/tools/stop-darling-runtime.py
|
||||
sh build/runtime/tools/install-riot-presentation-runtime.sh
|
||||
sh build/runtime/tools/install-riot-gpu-runtime.sh
|
||||
# darling-lol perf: build and install optimized libc/libc++/libplatform.
|
||||
if [ -f build/runtime/tools/build-riot-libs-runtime.sh ]; then
|
||||
sh build/runtime/tools/build-riot-libs-runtime.sh
|
||||
python3 build/runtime/tools/install-riot-libs-runtime.py
|
||||
fi
|
||||
python3 build/runtime/tools/install-darling-system-profiler.py
|
||||
@@ -4,4 +4,9 @@ repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
cd "$repo"
|
||||
python3 scripts/configure.py >/dev/null
|
||||
if [ -d build/venv/bin ]; then PATH="$repo/build/venv/bin:$PATH"; export PATH; fi
|
||||
# darling-lol perf: optionally wrap with gamemoderun for automatic
|
||||
# CPU governor, nice level, and scheduler optimizations.
|
||||
if [ "${RCLOL_GAMEMODE:-auto}" != "0" ] && command -v gamemoderun >/dev/null 2>&1; then
|
||||
exec gamemoderun sh build/runtime/tools/run-riot-client.sh
|
||||
fi
|
||||
exec sh build/runtime/tools/run-riot-client.sh
|
||||
+4
-1
@@ -4,7 +4,10 @@ import ast,json,re,subprocess,sys
|
||||
from pathlib import Path
|
||||
from common import ROOT
|
||||
subprocess.run([sys.executable,str(ROOT/'scripts/configure.py')],check=True)
|
||||
files=subprocess.check_output(['git','-C',str(ROOT),'ls-files','-z']).decode().split('\0')
|
||||
try:
|
||||
files=subprocess.check_output(['git','-C',str(ROOT),'ls-files','-z'],stderr=subprocess.DEVNULL).decode().split('\0')
|
||||
except Exception:
|
||||
files=[str(p.relative_to(ROOT)) for p in ROOT.rglob('*') if p.is_file() and not any(part.startswith('.') or part in ['build','__pycache__'] for part in p.relative_to(ROOT).parts)]
|
||||
errors=[]
|
||||
secret_patterns=[r'gh[pousr]_[A-Za-z0-9]{30,}',r'AKIA[0-9A-Z]{16}',r'eyJ[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,}',r'-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----']
|
||||
for name in filter(None,files):
|
||||
|
||||
Reference in new issue
Block a user