From 1cbea185946a5340436cb63e3bcf1a7981d03571 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 15 Apr 2018 15:17:07 -0700 Subject: README/NFO: add blurb about setcap --- HUNGRYCAT.NFO | 6 ++++++ README | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/HUNGRYCAT.NFO b/HUNGRYCAT.NFO index 2e0cd21..6480768 100644 --- a/HUNGRYCAT.NFO +++ b/HUNGRYCAT.NFO @@ -28,3 +28,9 @@ ESC to quit How to hack: `git clone git://git.pengaru.com/whale` + + Linux note: + + Run `sudo setcap 'cap_sys_nice=eip' whale-linux-amd64` to prevent + audio dropouts. This allows SDL's audio thread to have increased + priority. diff --git a/README b/README index 4f2d6bd..d5ee129 100644 --- a/README +++ b/README @@ -17,7 +17,7 @@ Building from source: Optionally with svg-cairo instead (like the release windows builds) - ./bootstrap; mkdir build; cd build; ../configure --with-svg-cairo; make + ./bootstrap; mkdir build; cd build; ../configure --with-svg-cairo; make On GNU/Linux for Windows via MinGW-w64 w/static linking: @@ -40,7 +40,18 @@ Installing: adding the assets to the automake stuff to support installation. Simply add a symlink to the assets directory, and run from the build root: - cd build; ln -s ../assets; src/whale + cd build; ln -s ../assets; src/whale + + +Running: + + Just run without any arguments from a directory containing assets/ + + On linux SDL is unable to raise the audio thread priority without either + root privileges or the specific capability. Don't run it as root, instead + run this command on the executable: + + `sudo setcap 'cap_sys_nice=eip' whale-linux-amd64` - 4/15/2018 -- cgit v1.2.3