From 6e9b23f06f699b90831cd79d60116b05fbabc494 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 14 Feb 2021 20:01:10 -0500 Subject: [PATCH] demo: account for raster time in TheoFPS calculation --- src/demo/demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demo/demo.c b/src/demo/demo.c index f257eb9b2..2d2d20ebe 100644 --- a/src/demo/demo.c +++ b/src/demo/demo.c @@ -426,8 +426,8 @@ summary_table(struct ncdirect* nc, const char* spec, bool canimage, bool canvide qprefix(results[i].timens, NANOSECS_IN_SEC, timebuf, 0); bprefix(results[i].stats.render_bytes, 1, totalbuf, 0); if(results[i].stats.renders){ - qprefix((uintmax_t)results[i].stats.renders * NANOSECS_IN_SEC * 1000 / - (results[i].stats.render_ns + results[i].stats.writeout_ns), + qprefix((uintmax_t)results[i].stats.writeouts * NANOSECS_IN_SEC * 1000 / + (results[i].stats.render_ns + results[i].stats.writeout_ns + results[i].stats.raster_ns), 1000, tfpsbuf, 0); }else{ qprefix(0, NANOSECS_IN_SEC, tfpsbuf, 0);