From fe3f6a4818fc198dba4ecde07151d21665e1f987 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 26 Jan 2017 11:29:53 +0200 Subject: Add more comments --- glcapture.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glcapture.c b/glcapture.c index 5344215..e90f5ca 100644 --- a/glcapture.c +++ b/glcapture.c @@ -311,6 +311,10 @@ write_data_unsafe(struct fifo *fifo, const struct frame_info *info, const void * } fifo->size = pipe_sz; + + // Set some reasonable buffer size for fwrites + // This is still experimental and if you get smoother output by setting this to + // _IONBF let me know. setvbuf(fifo->file, NULL, _IOFBF, fifo->size / 8); } } -- cgit v1.2.3-70-g09d2