Fix the problem that frame rate becomes slower than the specified value.
Merge pull request #2993 from nistetsurooy/more-precise-fps

Fix the problem that frame rate becomes slower than the specified value.