summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-22 22:33:25 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-22 22:33:25 +0200
commit7d8bf480979410c36f6554f48dd19de6074278ae (patch)
tree6fa4d05709ac10eed10f6eef637a669774918110
parente045862fb4d02736203a02939f124101991b115d (diff)
Update "documentation"
-rw-r--r--glcapture.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/glcapture.c b/glcapture.c
index f53d37c..1680bfe 100644
--- a/glcapture.c
+++ b/glcapture.c
@@ -10,6 +10,8 @@
*
* Make sure you increase your maximum pipe size /prox/sys/fs/pipe-max-size
* to minimum of 15 * (width * height * 3)
+ *
+ * If you get xruns from alsa, consider increasing your audio buffer size.
*/
#define _GNU_SOURCE
@@ -51,9 +53,18 @@ static void* store_real_symbol_and_return_fake_symbol(const char *symbol, void *
// Some tunables
// XXX: Make these configurable
-#define NUM_PBOS 2 // Use any amount you want as long as you have vram
-static double FPS = 60.0; // Map this to the highest FPS in your program, currently glcapture does not drop frames
+
+// Use any amount you want as long as you have the vram for it
+#define NUM_PBOS 2
+
+// Target framerate for the video stream
+// FIXME: Currently glcapture does not drop frames, if going over the target framerate
+static double FPS = 60.0;
+
+// Multiplier for system clock (MONOTONIC, RAW) can be used to make recordings of replays smoother (or speed hack)
static double SPEED_HACK = 1.0;
+
+// Path for the fifo where glcapture will output the rawmux data
static const char *FIFO_PATH = "/tmp/glcapture.fifo";
enum stream {