summaryrefslogtreecommitdiffstats
path: root/progs/perf/drawoverhead.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-09-17 12:08:04 +0100
committerKeith Whitwell <[email protected]>2009-09-17 12:08:04 +0100
commite95a3a23dca9fc7aaa89237059d841f624b438db (patch)
treea255327884ee6ce838e83de48bc308d347ce8a69 /progs/perf/drawoverhead.c
parent21caa29fbd332a2ee05a58df91e1664fbbc4e61f (diff)
progs/perf: add scons support, get working under mingw
Diffstat (limited to 'progs/perf/drawoverhead.c')
-rw-r--r--progs/perf/drawoverhead.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/progs/perf/drawoverhead.c b/progs/perf/drawoverhead.c
index 8c99804d342..a1d5febf19a 100644
--- a/progs/perf/drawoverhead.c
+++ b/progs/perf/drawoverhead.c
@@ -116,17 +116,18 @@ PerfDraw(void)
double rate0, rate1, rate2, overhead;
rate0 = PerfMeasureRate(DrawNoStateChange);
- printf(" Draw only: %.1f draws/second\n", rate0);
+ perf_printf(" Draw only: %.1f draws/second\n", rate0);
+
rate1 = PerfMeasureRate(DrawNopStateChange);
overhead = 1000.0 * (1.0 / rate1 - 1.0 / rate0);
- printf(" Draw w/ nop state change: %.1f draws/sec (overhead: %f ms/draw)\n",
- rate1, overhead);
+ perf_printf(" Draw w/ nop state change: %.1f draws/sec (overhead: %f ms/draw)\n",
+ rate1, overhead);
rate2 = PerfMeasureRate(DrawStateChange);
overhead = 1000.0 * (1.0 / rate2 - 1.0 / rate0);
- printf(" Draw w/ state change: %.1f draws/sec (overhead: %f ms/draw)\n",
- rate2, overhead);
+ perf_printf(" Draw w/ state change: %.1f draws/sec (overhead: %f ms/draw)\n",
+ rate2, overhead);
exit(0);
}