demo summary: scale TheoFPS div by 1000 #928

pull/931/head
nick black 4 years ago
parent ed748a5162
commit f8854f84e8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -378,6 +378,9 @@ If things break or seem otherwise lackluster, **please** consult the
* *Q:* I pretty much always need an `ncplane` when using a `cell`. Why doesn't the latter hold a point to the former?
* *A:* Besides the massive redundancy this would entail, `cell` needs to remain as small as possible, and you almost always have the `ncplane` handy if you've got a reference to a valid `cell` anyway.
* *Q*: I ran `notcurses-demo` with a single demo, but my summary numbers don't match that demo's numbers, you charlatan.
* *A*: `notcurses-demo` renders several frames beyond the actual demos.
## Supplemental material
### Useful links

@ -374,7 +374,7 @@ summary_table(struct ncdirect* nc, const char* spec){
qprefix(results[i].stats.render_ns, GIG, rtimebuf, 0);
bprefix(results[i].stats.render_bytes, 1, totalbuf, 0);
if(results[i].stats.renders){
qprefix((double)results[i].stats.renders * GIG / results[i].stats.render_ns, 1, tfpsbuf, 0);
qprefix((uintmax_t)results[i].stats.renders * GIG * 1000 / results[i].stats.render_ns, 1000, tfpsbuf, 0);
}else{
qprefix(0, GIG, tfpsbuf, 0);
}

Loading…
Cancel
Save