Skip to content

Commit

Permalink
Improve visualization performance
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bbucior committed Mar 24, 2016
1 parent c7822bc commit e634a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mof.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e634a89

Please sign in to comment.