Fix high latency of video frames on slow computers

This pull request fixes https://github.com/drothlis/stb-tester/issues/137.