diff options
author | rodri <rgl@antares-labs.eu> | 2024-09-07 18:40:35 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-09-07 18:40:35 +0000 |
commit | e862d6f0224de67b0a329e16b91841206feb844a (patch) | |
tree | a712a7447153a234daae207f26db21ef4f979477 /solar.c | |
parent | a3add1cdcbd30704a34d2876f556d0bff8694402 (diff) | |
download | 3dee-e862d6f0224de67b0a329e16b91841206feb844a.tar.gz 3dee-e862d6f0224de67b0a329e16b91841206feb844a.tar.bz2 3dee-e862d6f0224de67b0a329e16b91841206feb844a.zip |
let the renderer print the profiling results.
Diffstat (limited to 'solar.c')
-rw-r--r-- | solar.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -564,12 +564,6 @@ renderproc(void *) t0 = nsec(); for(;;){ shootcamera(camera, &shader); - if(doprof) - fprint(2, "R %llud %llud\nE %llud %llud\nT %llud %llud\nr %llud %llud\n\n", - camera->times.R[camera->times.cur-1].t0, camera->times.R[camera->times.cur-1].t1, - camera->times.E[camera->times.cur-1].t0, camera->times.E[camera->times.cur-1].t1, - camera->times.Tn[camera->times.cur-1].t0, camera->times.Tn[camera->times.cur-1].t1, - camera->times.Rn[camera->times.cur-1].t0, camera->times.Rn[camera->times.cur-1].t1); Δt = nsec() - t0; if(Δt > HZ2MS(60)*1000000ULL){ lockdisplay(display); @@ -943,6 +937,8 @@ threadmain(int argc, char *argv[]) if((mctl = initmouse(nil, screen)) == nil) sysfatal("initmouse: %r"); + rctl->doprof = doprof; + viewr = rectsubpt(Rpt(screen->r.min, subpt(screen->r.max, Pt(0,Cmdwinht))), screen->r.min); cmdbox.r = Rect(viewr.min.x, viewr.max.y, Dx(viewr), Dy(screen->r)); cmdbox.cmds = cmds; |