I have replaced jsmol in FirstGlance in Jmol with the 12/13 version.
Indeed the Chrome disaster seems fixed. And in a quick check, FirstGlance appeared to work correctly.

Hurray for Bob! I am constantly in awe! (And yes Yay for Mighty Mouse to the rescue!)

Mouse rotation in Chrome is still jerkier than in Firefox, but it is acceptable. (Better than Internet Explorer or Edge.)

zoomto *1.3 # default 1 sec

in a large Jmol (as in FirstGlance) is slower, jerkier, and takes several seconds in Chrome, but is smooth and fast in Firefox.

(At http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm, how about an option to increase the size of JSmol by 2.5 fold?)

My impression is that the jerky rotation in Chrome (jerkiness that remains in the 12/13 version of JSmol) has been present well before the disastrous version 47 of Chrome released December 1.

I wonder if you can do anything further, Bob, to make rotation-via-mouse smoother in Chrome, more like it is in Firefox? Just a thought. You've already worked a miracle overnight!

-Eric

On 12/13/15 1:56 PM, Robert Hanson wrote:
This new version is now available at SourceForge:

*Download Jmol-14.4.1_2015.12.13-binary.zip (60.3 MB) <https://sourceforge.net/projects/jmol/files/latest/download?source=files>*


*IMPORTANT*: A very recent modification of Chrome makes Chrome unusable with all previous versions of JSmol, at least until sometime in January. The WebGL version of JSmol is not impacted.

This appears to be the result of a well-meaning attempt by Chromium developers to enhance smooth scrolling of pages by lowering the priority of setTimeout calls. However, the unanticipated fallout of that change results in extremely rough rotation of models. You can follow the issue here: https://code.google.com/p/chromium/issues/detail?id=568725 Note that one of the last comments on Dec. 11 indicates that there indicates this issue will not be addressed until sometime in January.

*But there is a workaround. *This release of Jmol 14.4.1 should correct that problem and, at the same time, may improve performance with Microsoft Edge.

I have put up two versions of JSmol that illustrate the problem and the fix:

(original) http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm
(fixed) http://chemapps.stolaf.edu/jmol/jsmol2/jsmol.htm

Testing of that second site would be appreciated.

The work-around is simple, and if you want, you can implement this yourself on your site. Really (in terms of this bug) it is just a single coding change in jsmol/js/JSmol.js, where one "setTimeout(f)" has been replaced with "requestAnimationFrame(f)". Thus, if you prefer, you should be able to just swap in a new JSmol.min.js or JSmol.min.nojq.js for the old one. I have not tried this. Of course, if you do that, then the other bugs listed below will still be there. If you want to try that, here is the link to that file specifically:

http://chemapps.stolaf.edu/jmol/jsmol2/JSmol.min.js

Bob

Jmol.___JmolVersion="14.4.1_2015.12.13"

bug fix: JavaScript Chrome/Edge fix for slow response due to setTimeout issues; uses requestAnimationFrame instead in JSmol.js
bug fix: zoomTo not setting time to 0 in the case of scriptWait
bug fix: set selectAllModels should restrict action of display/hide as well
bug fix: set selectAllModels not working appropriately
bug fix: set selectAllModels should not be saved in state
bug fix: JmolData.jar does not update atom screen positions upon REFRESH or select {visible}
bug fix: JmolData.jar -p flag does not work properly
bug fix: model 0 issued when more than one PDB file is open does not execute model *

--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



------------------------------------------------------------------------------


_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to