From d94affec0e772e529479b0a4624464690919fed4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Jan 2023 13:59:57 -0800 Subject: 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. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 943a8ff..0718bfd 100644 --- a/src/main.c +++ b/src/main.c @@ -398,7 +398,7 @@ int main(int argc, const char *argv[]) if (til_fb_flip(rototiller.fb) < 0) break; - fps_print(rototiller.fb); + fps_fprint(rototiller.fb, stderr); } pthread_cancel(rototiller.thread); -- cgit v1.2.1