diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-08 11:38:39 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-08 11:38:39 -0800 |
commit | 9beec600be686bb78f4c8cd65f2e80504deae625 (patch) | |
tree | 7218654200f91fee3290f8a068500e1121c01d4c | |
parent | c8eb08da1e772d9320a4c41aed09eef8774f4815 (diff) |
make gl temp buffer size adjustable
-rw-r--r-- | src/library_gl.js | 2 | ||||
-rw-r--r-- | src/settings.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index c43b424d..f37fde78 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1501,7 +1501,7 @@ var LibraryGL = { }, // Temporary buffers - MAX_TEMP_BUFFER_SIZE: 2*1024*1024, + MAX_TEMP_BUFFER_SIZE: {{{ GL_MAX_TEMP_BUFFER_SIZE }}}, tempBufferIndexLookup: null, tempVertexBuffers: null, tempIndexBuffers: null, diff --git a/src/settings.js b/src/settings.js index 0234d0ca..23898195 100644 --- a/src/settings.js +++ b/src/settings.js @@ -148,9 +148,11 @@ var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). // Runtime.debug at runtime for logging to cease, and can set it when you // want it back. A simple way to set it in C++ is // emscripten_run_script("Runtime.debug = ...;"); +var SOCKET_DEBUG = 0; // Log out socket/network data transfer. + var GL_DEBUG = 0; // Print out all calls into WebGL. As with LIBRARY_DEBUG, you can set a runtime // option, in this case GL.debug. -var SOCKET_DEBUG = 0; // Log out socket/network data transfer. +var GL_MAX_TEMP_BUFFER_SIZE = 2097152; // How large GL emulation temp buffers are var PROFILE_MAIN_LOOP = 0; // Profile the function called in set_main_loop |