ref: 01a95d40e7ff26c5816c35f35d08b03e15f8ec5c
parent: 18d7709ae6de82f0ef152484fec7241d6be50859
author: rodri <rgl@antares-labs.eu>
date: Tue May 7 16:00:33 EDT 2024
vis: print pipeline timings to stderr when profiling.
--- a/vis.c
+++ b/vis.c
@@ -496,6 +496,12 @@
t0 = nsec();
for(;;){
shootcamera(maincam, shader);
+ if(doprof)
+ fprint(2, "R %llud %llud\nE %llud %llud\nT %llud %llud\nr %llud %llud\n\n",
+ maincam->times.R[maincam->times.cur-1].t0, maincam->times.R[maincam->times.cur-1].t1,
+ maincam->times.E[maincam->times.cur-1].t0, maincam->times.E[maincam->times.cur-1].t1,
+ maincam->times.Tn[maincam->times.cur-1].t0, maincam->times.Tn[maincam->times.cur-1].t1,
+ maincam->times.Rn[maincam->times.cur-1].t0, maincam->times.Rn[maincam->times.cur-1].t1);
Δt = nsec() - t0;
if(Δt > HZ2MS(60)*1000000ULL){
nbsend(drawc, nil);