summaryrefslogtreecommitdiff
path: root/src/fps.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-01-11 13:59:57 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-01-11 22:31:31 -0800
commitd94affec0e772e529479b0a4624464690919fed4 (patch)
tree5459b1f214a1e8d063c8816d947f912a6fdd7c66 /src/fps.h
parent320ed9ad22303d942cc6bb76df037044ce71b6ea (diff)
fps: move FPS printing to stderr
With --print-pipes there will be a potential shitload of stuff getting printed out, and it'd be nice to easily distinguish that content from the FPS counter. Since stderr is normally less buffered than stdout (line buffered) not lose debugging information, just put the low-bandwidth periodic FPS print there instead. This leaves stdout for --print-pipes output which occurs every frame *and* may have a lot of content per print.
Diffstat (limited to 'src/fps.h')
-rw-r--r--src/fps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fps.h b/src/fps.h
index 1afb566..ede9efb 100644
--- a/src/fps.h
+++ b/src/fps.h
@@ -1,9 +1,11 @@
#ifndef _FPS_H
#define _FPS_H
+#include <stdio.h>
+
#include "til_fb.h"
int fps_setup(void);
-void fps_print(til_fb_t *fb);
+void fps_fprint(til_fb_t *fb, FILE *out);
#endif
© All Rights Reserved