forked from enlightenment/expedite
parent
8644206b6e
commit
b8fa0d949d
|
@ -9,6 +9,7 @@ struct _Evas_Object_Image_Preload
|
|||
|
||||
Evas *evas = NULL;
|
||||
int win_w = 720, win_h = 420;
|
||||
int loops = LOOPS;
|
||||
|
||||
static char *datadir = NULL;
|
||||
static int go = 1;
|
||||
|
@ -1172,6 +1173,11 @@ _profile_parse(int argc, char **argv)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
else if ((!strcmp(argv[i], "-c")) && (i < (argc - 1)))
|
||||
{
|
||||
i++;
|
||||
loops = atoi(argv[i]);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -1271,6 +1277,7 @@ _engine_args(int argc, char **argv)
|
|||
"Options:\n"
|
||||
" -datadir path/to/data\n"
|
||||
" -a (autorun all tests)\n"
|
||||
" -c NUM (loop count for test)\n"
|
||||
" -l (list tests)\n"
|
||||
" -t TEST-NUM\n"
|
||||
" -e ENGINE\n"
|
||||
|
|
|
@ -83,6 +83,7 @@ extern "C"
|
|||
|
||||
extern Evas *evas;
|
||||
extern int win_w, win_h;
|
||||
extern int loops;
|
||||
|
||||
void srnd(void);
|
||||
unsigned int rnd(void);
|
||||
|
@ -103,7 +104,7 @@ int engine_abort(void);
|
|||
}
|
||||
|
||||
#define FPS_STD(x) \
|
||||
if ((f >= LOOPS) && (!done)) \
|
||||
if ((f >= loops) && (!done)) \
|
||||
{ \
|
||||
double fps; \
|
||||
fps = (double)f / t; \
|
||||
|
|
Loading…
Reference in New Issue