improve frame timing