summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glcapture.c4
1 files changed, 4 insertions, 0 deletions
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);
}
}