summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-10-29 14:07:38 -0700
committerKeith Packard <keithp@keithp.com>2014-10-29 14:07:38 -0700
commit801baef3f16b57186efacedf76b3ada9f4bd6cb5 (patch)
tree8dd9caf399dcd2e7cef9abbf63fd9ab05d96ed24
parent2661e8f80aa20c695248d227778efa3593471df8 (diff)
default interval to one for present test
-rw-r--r--present.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/present.c b/present.c
index 007ed41..3e5554a 100644
--- a/present.c
+++ b/present.c
@@ -58,7 +58,7 @@ int x;
int x_inc = 30;
uint64_t msc;
uint64_t target_msc;
-int interval = 0;
+int interval = 1;
uint32_t serial;
uint32_t options = 0; // XCB_PRESENT_OPTION_ASYNC;
@@ -300,8 +300,8 @@ main (int argc, char **argv)
if (diff< 0)
diff = -diff;
- if (diff && interval)
- printf ("target %lld actual %lld\n", target_msc, ce->msc);
+// if (diff && interval)
+// printf ("target %lld actual %lld\n", target_msc, ce->msc);
++frame_count;
switch (ce->mode) {
case XCB_PRESENT_COMPLETE_MODE_COPY: