Improve frame timing