From e634a895439073e2a8c1006ed4a1e8319f74e3d1 Mon Sep 17 00:00:00 2001 From: Ben Bucior Date: Thu, 24 Mar 2016 11:34:28 -0500 Subject: [PATCH] Improve visualization performance Set a flag to draw the MOF less accurately during rotation in exchange for a more responsive page. See the [JSmol documentation](http://wiki.jmol.org/index.php/PlatformSpeed) for details. WebGL (with a canvas fallback) still might be the way to go long-term. --- mof.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mof.js b/mof.js index 79f0851..f78e7a5 100644 --- a/mof.js +++ b/mof.js @@ -92,7 +92,7 @@ $(function() { serverURL: "php/jsmol.php", // this is not applied by default; you should set this value explicitly // src: initialMOF, // file to load //script: "set antialiasDisplay;background white; load " + str + "; set appendNew false; set defaultDropScript 'zap; load ASYNC " + f + "; console; var r = " + f + "; print r; spacefill only;'; zoom 60; spacefill only;", // script to run - script: "set antialiasDisplay; load " + str + " {1 1 1}; rotate y 30; rotate x 30; set appendNew false; set defaultDropScript ''; set displayCellParameters false; zoom 40; spacefill 23%; wireframe 0.15; background image './Images/gradBlue2.png';", // script to run + script: "set antialiasDisplay; load " + str + " {1 1 1}; rotate y 30; rotate x 30; set appendNew false; set defaultDropScript ''; set displayCellParameters false; zoom 40; spacefill 23%; wireframe 0.15; background image './Images/gradBlue2.png'; set platformSpeed = 2", // script to run defaultModel: "", // name or id of a model to be retrieved from a database addSelectionOptions: false, // to interface with databases debug: false