mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
demo: account for raster time in TheoFPS calculation
This commit is contained in:
parent
f1d9257732
commit
6e9b23f06f
@ -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);
|
qprefix(results[i].timens, NANOSECS_IN_SEC, timebuf, 0);
|
||||||
bprefix(results[i].stats.render_bytes, 1, totalbuf, 0);
|
bprefix(results[i].stats.render_bytes, 1, totalbuf, 0);
|
||||||
if(results[i].stats.renders){
|
if(results[i].stats.renders){
|
||||||
qprefix((uintmax_t)results[i].stats.renders * NANOSECS_IN_SEC * 1000 /
|
qprefix((uintmax_t)results[i].stats.writeouts * NANOSECS_IN_SEC * 1000 /
|
||||||
(results[i].stats.render_ns + results[i].stats.writeout_ns),
|
(results[i].stats.render_ns + results[i].stats.writeout_ns + results[i].stats.raster_ns),
|
||||||
1000, tfpsbuf, 0);
|
1000, tfpsbuf, 0);
|
||||||
}else{
|
}else{
|
||||||
qprefix(0, NANOSECS_IN_SEC, tfpsbuf, 0);
|
qprefix(0, NANOSECS_IN_SEC, tfpsbuf, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user