kripken/emscripten — pull request #2839 by juj (2014-09-27 09:30:49+00:00)
Title: Main loop scheduling

Two changes:
- Fixes a bug where calling `emscripten_set_main_loop` with fps=0 in a sequence with `emscripten_cancel_main_loop` would not properly cancel the previous loops, but the rAF timers would stack up, calling the main tick function at a too fast rate.
- Adds support for controlling swap interval as an Emscripten-native API, and in EGL, GLFW and SDL.