summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-11-08 15:02:58 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-11-08 15:02:58 +0000
commitf9b851a365d3d3f02ee9b3e4d8a845d19e008c8c (patch)
treeacf5a2a9e2bf732927289227f13838008306abb4
parent627a2213b28dc3a8122ebe0afffda1defacee2ed (diff)
warm up cpu on auto-tests
SVN revision: 54332
-rw-r--r--src/bin/main.c2
-rw-r--r--src/bin/ui.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 524a6d5..2707479 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1373,7 +1373,7 @@ main(int argc, char **argv)
1373 ui_args(argc, argv); 1373 ui_args(argc, argv);
1374 1374
1375 evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO); 1375 evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
1376 1376
1377 while (_engine_go()) 1377 while (_engine_go())
1378 { 1378 {
1379 engine_loop(); 1379 engine_loop();
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 30f2b9f..13c2eb5 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -453,6 +453,7 @@ _ui_setup(void)
453{ 453{
454 Evas_Object *o; 454 Evas_Object *o;
455 Evas_Coord x, y, w, h; 455 Evas_Coord x, y, w, h;
456 time_t t0, t;
456 457
457 o = evas_object_rectangle_add(evas); 458 o = evas_object_rectangle_add(evas);
458 evas_object_move(o, 0, 0); 459 evas_object_move(o, 0, 0);
@@ -551,6 +552,18 @@ _ui_setup(void)
551#undef UI 552#undef UI
552 _ui_menu_item_add("exit.png", "Exit", _ui_exit); 553 _ui_menu_item_add("exit.png", "Exit", _ui_exit);
553 554
555 /* make sure disk io isn't going to turn up unexpectedly */
556 sync();
557 sync();
558 sync();
559 /* warm up the cpu with some spinning */
560 t0 = time(NULL);
561 for (;;)
562 {
563 t = time(NULL);
564 if (t - t0 > 2) break;
565 }
566
554 if (run_all) 567 if (run_all)
555 { 568 {
556 _ui_all(); 569 _ui_all();