Skip to content

Browser limitations

juj edited this page Aug 9, 2013 · 8 revisions

This page collects together some of the most common differences between the latest versions of the major browsers and features that emscripten-based applications and games typically depend on. Use this page to chart a quick summary of emscripten support in different browsers.

  • The function emscripten_get_now() returns a wallclock time as a float in milliseconds. Opera 12.16 and on Windows Google Chrome 28.0.1500.95 have a limitation that the timer precision is only in milliseconds. On other major browsers (IE10, Firefox 22, Chrome 28 on non-Windows), emscripten_get_now() will have sub-millisecond precision.
  • Internet Explorer 10 and older do not support WebGL, which means trying to initialize a GL context via EGL, GLUT, SDL or similar will fail. Emscripten applications that do not depend on OpenGL can still be compiled for this browser however. See WebGL support in different browsers.
  • Opera 12.16 has limited support for the W3C File API, in particular it does not support createObjectURL functionality. As a result, it is not possible to use the browser image codecs on this version of Opera to decode preloaded files in the emscripten virtual filesystem.
  • OpenAL and SDL audio support in Emscripten depend on the Web Audio API. See Web Audio API support in different browsers.
Clone this wiki locally