show consistent timings between debug and release
git-svn-id: http://skia.googlecode.com/svn/trunk@1370 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 7241185..76f4da1 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -25,10 +25,11 @@
#define ANIMATING_DELAY 750
#ifdef SK_DEBUG
- #define FPS_REPEAT_COUNT 10
+ #define FPS_REPEAT_MULTIPLIER 1
#else
- #define FPS_REPEAT_COUNT 100
+ #define FPS_REPEAT_MULTIPLIER 10
#endif
+#define FPS_REPEAT_COUNT (10 * FPS_REPEAT_MULTIPLIER)
#ifdef SK_SUPPORT_GL
#include "GrGLConfig.h"
@@ -1310,7 +1311,7 @@
}
if (fMeasureFPS) {
- title.appendf(" %4d ms", fMeasureFPS_Time);
+ title.appendf(" %6.1f ms", fMeasureFPS_Time / (float)FPS_REPEAT_MULTIPLIER);
}
if (fUsePipe && SampleView::IsSampleView(view)) {
title.prepend("<P> ");