aboutsummaryrefslogtreecommitdiffstats
path: root/progs/perf/swapbuffers.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-09-22 11:27:18 +0100
committerKeith Whitwell <[email protected]>2009-09-22 11:27:18 +0100
commitbf014d03fe56394c8fd11862fe60c92464ae5b8b (patch)
tree8c686572b20e4acf574c4802a3b8f5d0cb6e20a7 /progs/perf/swapbuffers.c
parentac6a5107e2c005a7f57249d1836c43d0e1f8f496 (diff)
progs/perf: clean up swapbuffers test a bit
Diffstat (limited to 'progs/perf/swapbuffers.c')
-rw-r--r--progs/perf/swapbuffers.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/progs/perf/swapbuffers.c b/progs/perf/swapbuffers.c
index 79ac372f277..866bb72ad27 100644
--- a/progs/perf/swapbuffers.c
+++ b/progs/perf/swapbuffers.c
@@ -119,9 +119,10 @@ PerfNextRound(void)
{
static unsigned i;
- if (i < sizeof(sizes) / sizeof(sizes[0])) {
+ if (i < sizeof(sizes) / sizeof(sizes[0]) &&
+ PerfReshapeWindow( sizes[i].w, sizes[i].h ))
+ {
perf_printf("Reshape %dx%d\n", sizes[i].w, sizes[i].h);
- PerfReshapeWindow( sizes[i].w, sizes[i].h );
real_WinWidth = sizes[i].w;
real_WinHeight = sizes[i].h;
i++;
@@ -141,7 +142,7 @@ PerfDraw(void)
double rate0;
rate0 = PerfMeasureRate(SwapNaked);
- perf_printf(" Swapbuffers (Bare) %dx%d: %s swaps/second",
+ perf_printf(" Swapbuffers %dx%d: %s swaps/second",
real_WinWidth, real_WinHeight,
PerfHumanFloat(rate0));
perf_printf(" %s pixels/second\n",
@@ -150,7 +151,7 @@ PerfDraw(void)
rate0 = PerfMeasureRate(SwapClear);
- perf_printf(" Swapbuffers + Clear %dx%d: %s swaps/second",
+ perf_printf(" Swap/Clear %dx%d: %s swaps/second",
real_WinWidth, real_WinHeight,
PerfHumanFloat(rate0));
perf_printf(" %s pixels/second\n",
@@ -158,7 +159,7 @@ PerfDraw(void)
rate0 = PerfMeasureRate(SwapClearPoint);
- perf_printf(" Swapbuffers + Clear + DrawPoint %dx%d: %s swaps/second",
+ perf_printf(" Swap/Clear/Draw %dx%d: %s swaps/second",
real_WinWidth, real_WinHeight,
PerfHumanFloat(rate0));
perf_printf(" %s pixels/second\n",