diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-07 16:42:22 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-07 16:42:22 -0800 |
commit | 7d2e91458026dbdbb105d96aca87f069d60d9dcc (patch) | |
tree | a1f892adf8dd0e6ee76c7111884a5bb6c6270108 /demos | |
parent | 98a9576c6e3c357960bd7741f9e0ad964f206e29 (diff) |
bullet demo tweaks
Diffstat (limited to 'demos')
-rw-r--r-- | demos/webgl/bullet.js | 34 | ||||
-rw-r--r-- | demos/webgl/demo.html | 2 |
2 files changed, 27 insertions, 9 deletions
diff --git a/demos/webgl/bullet.js b/demos/webgl/bullet.js index 2b839801..b7b29488 100644 --- a/demos/webgl/bullet.js +++ b/demos/webgl/bullet.js @@ -1,10 +1,18 @@ -var Bullet = (function(Module, args) { - Module = Module || {}; - args = args || []; +//=== SLOW +//var Bullet = (function(Module, args) { +// Module = Module || {}; +// args = args || []; + +//=== FAST +var Module = {}; +var args = []; + + + + + + -//// Runs much faster, for some reason -//var Module = {}; -//var args = arguments; // === Auto-generated preamble library stuff === Runtime = { @@ -206717,6 +206725,16 @@ var Bullet = (function(Module, args) { } __ZNK12btQuaternion4getWEv.__index__ = Runtime.getFunctionIndex(__ZNK12btQuaternion4getWEv, "__ZNK12btQuaternion4getWEv"); - return Module; -})({}); + + + + + + +//=== SLOW +// return Module; +//})({}); + +//=== FAST +var Bullet = Module; diff --git a/demos/webgl/demo.html b/demos/webgl/demo.html index 12061c32..e1eb79ec 100644 --- a/demos/webgl/demo.html +++ b/demos/webgl/demo.html @@ -67,7 +67,7 @@ t = now; } - setInterval(render, 1000/60.); + setInterval(render, 1000/100); } doc.load("http://127.0.0.1:8991/scene.xml"); |