update frame count by elapsed time