File: browser_limitations.rst

package info (click to toggle)
emscripten 3.1.69%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 121,860 kB
  • sloc: ansic: 636,110; cpp: 425,974; javascript: 78,401; python: 58,404; sh: 49,154; pascal: 5,237; makefile: 3,366; asm: 2,415; lisp: 1,869
file content (18 lines) | stat: -rw-r--r-- 1,746 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. _Browser-limitations:

============================
Specific Browser Limitations
============================

This page lists some of the differences between the latest versions of the major browsers that are relevant to Emscripten-compiled applications and games:

-  The function :c:func:`emscripten_get_now` returns a wallclock time as a ``float`` in milliseconds. *Opera 12.16* and `Windows Google Chrome 28.0.1500.95 <https://code.google.com/p/chromium/issues/detail?id=158234>`_ have a limitation that the timer precision is only in milliseconds. On other major browsers (*IE10*, *Firefox 22*, *Chrome 28* on non-Windows) it has sub-millisecond precision.
- WebGL is not fully supported on *Internet Explorer*:

  -  *Internet Explorer 10* and older do not support WebGL. Trying to initialize a GL context via EGL, GLUT, SDL or similar will fail. Emscripten applications that do not depend on OpenGL can still run on this browser.
  -  *Internet Explorer 11* supports only part of WebGL 1.0. Some commands, shaders etc. may not work. You may be able to limit your app to using the subset that is supported by IE11.
  - WebGL support on other major browsers is fairly good (see `WebGL support in different browsers <http://caniuse.com/#feat=webgl>`_).

-  *Opera 12.16* has limited support for the W3C File API. In particular it does not support `createObjectURL functionality <http://www.opera.com/docs/specs/presto2.12/apis/#file>`_, which means that it is not possible to use the browser's image codecs to decode preloaded files in the Emscripten virtual file system.
-  OpenAL and SDL audio support in Emscripten depend on the Web Audio API (see `Web Audio API support in different browsers <http://caniuse.com/#feat=audio-api>`_).