diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-15 10:17:03 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-15 10:17:03 -0800 |
commit | 81c9b29d0d55f8aa61a4a89fff70b75f2d6d3409 (patch) | |
tree | 41017967996b5dcb7e65678a0a1dfd3627a8f07c /src/library_browser.js | |
parent | 60a86d0fcb15b8381f1fc97ad17571cb281f26c1 (diff) | |
parent | 4a2fd2a412f2406c190d78d3e2a8e4676165aa93 (diff) |
Merge pull request #2019 from juj/evenmore_gl_opts
Even more gl opts
Diffstat (limited to 'src/library_browser.js')
-rw-r--r-- | src/library_browser.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index d5e35339..458a8dd2 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -775,6 +775,15 @@ mergeInto(LibraryManager.library, { return; } + // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize + // VBO double-buffering and reduce GPU stalls. +#if FULL_ES2 + GL.newRenderingFrameStarted(); +#endif +#if LEGACY_GL_EMULATION + GL.newRenderingFrameStarted(); +#endif + if (Module['preMainLoop']) { Module['preMainLoop'](); } |