aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-05 13:56:01 -0500
committerAlon Zakai <alonzakai@gmail.com>2014-02-05 15:16:05 -0500
commit0c9c8b4c524e599bc17a1a011c3ec2ec9c24b998 (patch)
treee1999a3fe69100d42c08d4109acb4d676c680fda /src
parent9532e3875c691cc50efbee95475243eeb46e2552 (diff)
optimize out fround calls on clients that do not support fround
Diffstat (limited to 'src')
-rw-r--r--src/settings.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/settings.js b/src/settings.js
index fc54dc5a..79e949fa 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -124,8 +124,11 @@ var PRECISE_F32 = 0; // 0: Use JS numbers for floating-point values. These are 6
// 1: Model C++ floats precisely, using Math.fround, polyfilling when necessary. This
// can be slow if the polyfill is used on heavy float32 computation.
// 2: Model C++ floats precisely using Math.fround if available in the JS engine, otherwise
- // use an empty polyfill. This will have less of a speed penalty than using the full
- // polyfill in cases where engine support is not present.
+ // use an empty polyfill. This will have much less of a speed penalty than using the full
+ // polyfill in cases where engine support is not present. In addition, we can
+ // remove the empty polyfill calls themselves on the client when generating html,
+ // which should mean that this gives you the best of both worlds of 0 and 1, and is
+ // therefore recommended.
var SIMD = 0; // Whether to emit SIMD code ( https://github.com/johnmccutchan/ecmascript_simd )
var CLOSURE_ANNOTATIONS = 0; // If set, the generated code will be annotated for the closure