#376 Slow graphics updates with Jmol applet on OS X / Firefox

v11
closed-fixed
Bob Hanson
Applet (71)
5
2007-02-08
2007-01-12
Dean Johnston
No

The most recent versions of the Jmol applet (confirmed in 11.0.RC4) are slow to update the molecular display when you click and drag to rotate or zoom a molecule. This results in a "jerky" display even with very small molecules. This is only observed when the mouse pointer is within the applet. If the mouse pointer moves out of the applet while still holding down the mouse button, the molecule will rotate or zoom without any jerkiness.

This behavior is ONLY observed with browsers that use the Java embedding plugin, specifically Firefox (and other Mozilla browsers) on OS X (tested on 10.4.8). It has been confirmed by other users (Frieda Reichsman).

This behavior is NOT observed with older versions of the applet (10.9.66). It is not known at which point this behavior first appeared. A demo page comparing 10.9.66 to 11.0.RC3 is available at:
http://www.otterbein.edu/home/fac/dnhjhns/jmoltest/jmol_test.html

Discussion

  • Bob Hanson
    Bob Hanson
    2007-02-04

    Logged In: YES
    user_id=1082841
    Originator: NO

    I've put up four older versions of JmolApplet.jar in http://www.stolaf.edu/academics/chemapps/jmol/temp

    If you could please try each of these, that would be a start. Then I will give you more to try.

    Sorry for not spotting this earlier. If there's an easier way, let me know.

    Bob Hanson

     
  • Bob Hanson
    Bob Hanson
    2007-02-04

    • assigned_to: migueljmol --> hansonr
     
  • Dean Johnston
    Dean Johnston
    2007-02-05

    Logged In: YES
    user_id=1145454
    Originator: YES

    Thanks Bob - the problem doesn't show up in 10.9.100, but continues to appear in 11.0.RC3 and RC4. I haven't tested anything newer. The demo page now compares 10.9.100 and 11.0.RC3 if anyone else can confirm this.

    Dean Johnston

     
  • Bob Hanson
    Bob Hanson
    2007-02-05

    Logged In: YES
    user_id=1082841
    Originator: NO

    I've added 10.9.106, 11.1.2, and 11.1.5 for your checking.
    See http://www.stolaf.edu/academics/chemapps/jmol/temp

    Bob

     
  • Dean Johnston
    Dean Johnston
    2007-02-05

    Logged In: YES
    user_id=1145454
    Originator: YES

    10.9.106, 11.1.2 and 11.1.5 all display the "jerky" behavior for me. So it looks like we're down to somewhere between 10.9.100 and 10.9.106.

    Dean

     
  • Dean Johnston
    Dean Johnston
    2007-02-05

    Logged In: YES
    user_id=1145454
    Originator: YES

    10.9.100 is (still) OK. 10.9.103 is jerky. (Note: what you put up as 10.9.103 appears to be 10.9.102)

    The demo page has been updated again.

    Dean

     
  • Logged In: NO

    ok, that pins it down to the week of 11/17-11/23.
    This was when I changed the cursor type for dragging. Does the jumpiness correlate with the change of cursor?
    That is, no jumpiness when there is an arrow cursor; jumpiness when there is a four-arrow compass-like cursor?

    Bob

     
  • Dean Johnston
    Dean Johnston
    2007-02-05

    Logged In: YES
    user_id=1145454
    Originator: YES

    Interesting... I never noticed the cursor change. Here's what I observe when I click/drag:

    Mac/Firefox: cursor changes to white arrow while click/dragging within applet - changes back to black arrow if you click and drag until cursor is outside of the applet
    Mac/Opera: similar behavior to Firefox, but no jumpiness
    Mac/Safari: no change in cursor at all
    Win/IE: cursor changes to four-arrow cursor when click/dragging, stays as four-arrow cursor even when you click/drag until outside applet
    Win/Firefox: similar to Win/IE
    Linux (Ubuntu)/Firefox: cursor changes to hand, stays as hand even when you click/drag until outside applet

    So, in short, yes, the jumpiness correlates exactly with the change in cursor, but on the Mac it sometimes changes to a white arrow instead of a four-arrow cursor.

    Dean

     
  • Dean Johnston
    Dean Johnston
    2007-02-07

    Logged In: YES
    user_id=1145454
    Originator: YES

    Nope, the same jumpy behavior is observed for Firefox. Sorry.

    Dean

     
  • Logged In: NO

    That's what I expected, since that addition was done later. Please try

    http://www.stolaf.edu/academics/chemapps/jmol/temp/JmolApplet_11_1_9.jar

    This should do the trick. It removes a call to set the cursor type from
    a method that was invoked every time there was a mouse drag.

    Bob

     
  • Dean Johnston
    Dean Johnston
    2007-02-08

    Logged In: YES
    user_id=1145454
    Originator: YES

    Yeah... Success! Works perfectly. Thanks for tracking this down, Bob.

    Dean

     
  • Bob Hanson
    Bob Hanson
    2007-02-08

    • status: open --> closed-fixed
     
  • Bob Hanson
    Bob Hanson
    2007-02-08

    Logged In: YES
    user_id=1082841
    Originator: NO

    great.