aboutsummaryrefslogtreecommitdiff
path: root/tools/file_packager.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-21 17:36:03 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-21 17:36:03 -0700
commite0c3cd79dbfb4b1f5230b9a1589a3b1bedaa387d (patch)
treece9ef8d214397381dfaacf87b5440744ae794514 /tools/file_packager.py
parent60e3202da0db59b42a6702c96b06f3899dbf09f2 (diff)
add file handling code from --preload-file etc. in a pre-js, so that it will be able to start network access as early as possible
Diffstat (limited to 'tools/file_packager.py')
-rw-r--r--tools/file_packager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py
index ea314be7..1180870b 100644
--- a/tools/file_packager.py
+++ b/tools/file_packager.py
@@ -15,6 +15,8 @@ Usage:
--pre-run Will generate wrapper code that does preloading in Module.preRun. This is necessary if you add this
code before the main file has been loading, which includes necessary components like addRunDependency.
+ (This is how emcc --preload-file etc. work, i.e., it is the normal mode of operation. However, for
+ data loaded later, say using emscripten_async_load_script, you do not need --pre-run.)
--crunch=X Will compress dxt files to crn with quality level X. The crunch commandline tool must be present
and CRUNCH should be defined in ~/.emscripten that points to it. JS crunch decompressing code will