demo: account for raster time in TheoFPS calculation

This commit is contained in:
nick black 2021-02-14 20:01:10 -05:00
parent f1d9257732
commit 6e9b23f06f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);