summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-04-15 15:17:07 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-04-15 15:17:07 -0700
commit1cbea185946a5340436cb63e3bcf1a7981d03571 (patch)
tree34897dcd17e49fc7b09daf9a085f32c02fce0338
parent1aa0a3f7429684badde1e0c179c5a870a632fb75 (diff)
README/NFO: add blurb about setcap
-rw-r--r--HUNGRYCAT.NFO6
-rw-r--r--README15
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`
- <vcaputo@pengaru.com> 4/15/2018
© All Rights Reserved