From 7d8bf480979410c36f6554f48dd19de6074278ae Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 22 Jan 2017 22:33:25 +0200 Subject: Update "documentation" --- glcapture.c | 15 +++++++++++++-- 1 file 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 { -- cgit v1.2.3-70-g09d2