Implement a timing loop that's more sensitive to proper video update scheduling.
Merge branch 'emscripten' of github.com:juj/scummvm into emscripten

Conflicts:
	base/main.cpp