Closed Nancy-Salpepi closed 2 weeks ago
This problem is easist to see when dragging the DC Power Supply panel in the Pickup Coil screen.
@arouinfar has MacBook Pro with M1 Pro, and she sees the same behavior as @Nancy-Salpepi reported above.
I'm on MacBook Pro Intel, and I see the opposite behavior. While panning is happening, the dragging and object rendering looks nice and smooth. When panning is not happening, dragging looks jerky and rendering is lousy.
I've reproduced this in Geometric Optics also, so it's not sim-specific. @Nancy-Salpepi recalls reporting something similar in a past issue for some other sim. @arouinfar @Nancy-Salpepi and I agreed that this is not blocking for FEL.
@jessegreenberg could you please take a look?
This is happening because we are using CallbackTimer in KeyboardDragListener. We thought CallbackTimer was a good way to support both dragSpeed
and dragDelta
, but I can see now how CallbackTimer (through using setInterval
) will have frames where the listener is skipped and there is no movement, causing this stutter.
I'll make an issue in scenery to use a step listener instead.
On hold until https://github.com/phetsims/scenery/issues/1638 is addressed.
https://github.com/phetsims/scenery/issues/1638 has been reviewed and closed. The behavior in FEL seems smoother to me, @pixelzoom ready to verify and next steps.
Thanks @jessegreenberg. Looks good to me on MacBook Pro Intel + Chrome 126.0.6478.62.
@Nancy-Salpepi please verify, close if OK.
Looks great @jessegreenberg! Tested with MacBook Air (m1 chip) macOS 14.5 + safari/chrome.
Closing.
Great - Thanks for finding this @Nancy-Salpepi.
Test device MacBook Air M1 chip
Operating System 14.5
Browser Safari 17.5 and Chrome
Problem description For https://github.com/phetsims/qa/issues/1091, objects sputter when moving across the play area with keyboard input. This becomes really obvious when zoomed in. This is seen with all draggable objects using safari and chrome. I tested published Kepler's Law and didn't see this issue with the Measuring Tape and Stopwatch.
Steps to reproduce Here is an example:
Visuals
https://github.com/phetsims/faradays-electromagnetic-lab/assets/87318828/5b434509-3666-407f-9980-932ae7d93a55