forked from enlightenment/efl
Emotion Test: remove unuseful funtion enter_idle
was used to show FPS before. but a long time it doesn't do anything. SVN revision: 65021
This commit is contained in:
parent
66f18fc49f
commit
3d38f4d08e
|
@ -630,24 +630,6 @@ init_video_object(const char *module_filename, const char *filename)
|
|||
evas_object_show(oe);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
enter_idle(void *data __UNUSED__)
|
||||
{
|
||||
double t;
|
||||
static double pt = 0.0;
|
||||
static int frames = 0;
|
||||
|
||||
t = ecore_time_get();
|
||||
if (frames == 0) pt = t;
|
||||
frames++;
|
||||
if (frames == 100)
|
||||
{
|
||||
// printf("FPS: %3.3f\n", frames / (t - pt));
|
||||
frames = 0;
|
||||
}
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
check_positions(void *data __UNUSED__)
|
||||
{
|
||||
|
@ -740,7 +722,6 @@ main(int argc, char **argv)
|
|||
for (; args < argc; args++)
|
||||
init_video_object(backend, argv[args]);
|
||||
|
||||
ecore_idle_enterer_add(enter_idle, NULL);
|
||||
ecore_animator_add(check_positions, NULL);
|
||||
|
||||
ecore_main_loop_begin();
|
||||
|
|
Loading…
Reference in New Issue