How to keep animation FPS(frame per sec) as you wish

If you are developing Native OpenGL ES application, maintaining frame rate appropriately to reduce CPU usage is important. ecore_animator_frametime_set API is invented for that purpose.
static bool app_create(void *data)
{
    // ....
    
    ecore_animator_source_set(ECORE_ANIMATOR_SOURCE_TIMER);
    ecore_animator_frametime_set(1/30.f); // 30 FPS
    // ecore_animator_frametime_set(1/60.f); // 60 FPS
    
    // ....
}
    

Responses

0 Replies