summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-11-03 09:39:59 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-11-03 09:39:59 +0000
commit6f135f2734c245524bbb99da38e9c3b083a58362 (patch)
treec2954e3a0fd301a45de15fe075d35f60f966b281 /src
parent533fa58a7ed0e236286f762757f729e08011224c (diff)
expedite - calc weighted fps more clearly.
SVN revision: 78878
Diffstat (limited to 'src')
-rw-r--r--src/bin/ui.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 5156934..6c19c41 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -268,12 +268,9 @@ _ui_all(void)
268 wfps += (p_fps * weights[t_count]); 268 wfps += (p_fps * weights[t_count]);
269 key_func("Escape"); 269 key_func("Escape");
270 } 270 }
271 for (i = 1; 271 for (i = 1; i < t_count + 1; i++)
272 (i < (1 + t_count)) &&
273 (weights[i] > 0.0);
274 i++)
275 avgw += weights[i]; 272 avgw += weights[i];
276 avgw /= (i - 1); 273 avgw /= t_count;
277 if (t_count > 0) 274 if (t_count > 0)
278 { 275 {
279 char datestr[1024]; 276 char datestr[1024];
@@ -285,8 +282,8 @@ _ui_all(void)
285 if (tim) strftime(datestr, sizeof(datestr), "%Y-%m-%d %H:%M:%S", tim); 282 if (tim) strftime(datestr, sizeof(datestr), "%Y-%m-%d %H:%M:%S", tim);
286 else snprintf(datestr, sizeof(datestr), "unknown"); 283 else snprintf(datestr, sizeof(datestr), "unknown");
287 printf("\n#####Test Result#####\n" 284 printf("\n#####Test Result#####\n"
288 "evas speed: %5.2f\n" 285 "evas fps speed: %5.2f\n"
289 "evas speed(weighted): %5.2f\n" 286 "evas fps speed(weighted): %5.2f\n"
290 "testcase count: %i\n" 287 "testcase count: %i\n"
291 "date: %s\n" 288 "date: %s\n"
292 "evas version: %i.%i.%i.%i\n" 289 "evas version: %i.%i.%i.%i\n"
@@ -296,7 +293,7 @@ _ui_all(void)
296 "engine: %s\n" 293 "engine: %s\n"
297 "full screen: %i\n", 294 "full screen: %i\n",
298 (fps / t_count), 295 (fps / t_count),
299 (wfps / (t_count * avgw)), 296 (wfps / avgw) / t_count,
300 t_count, 297 t_count,
301 datestr, 298 datestr,
302 evas_version->major, evas_version->minor, evas_version->micro, 299 evas_version->major, evas_version->minor, evas_version->micro,