Open KatieWoe opened 5 years ago
@ariel-phet decided to defer this issue while MAS was in RC testing, noting:
Marking as deferred. This sim will surely be revisited at some point and we can look more deeply at that time
@ariel-phet should this still be deferred, or should @Denz1994 revisit for MASB/MAS redeploy?
@Denz1994 @arouinfar I am still not seeing this as a "major" issue. Considering JO is on vacation currently, and most people need to consult with him for performance improvements, I would just press ahead.
However, I do think learning to troubleshoot performance issues is a useful experience, so I am going to mark this as low priority and leave assigned to Denzell.
@Denz1994 this issue should NOT block publication of MAS:B but would be worthy of investigation and your learning as time allows.
I think we can get away with reducing the amount of pointsPerLoop
for each coil in the spring. I reduced it by 12 points per coil, so that should reduce the amount of numberOfCoilPoints
that need to be calculated when the xScaleProperty
changes.
The drawback is the springs may look negligibly more rigid. Can you confirm that this is acceptable @arouinfar?
Note: Above change should only affect oscillating masses.
@Denz1994 the oscillating springs in dev.11 and master look equally smooth to me!
Great, I'll take a similar approach to the massNodes and reassign for comparison.
MassNodes have been optimitzed in https://github.com/phetsims/masses-and-springs/commit/6c3904f as a part of https://github.com/phetsims/masses-and-springs/issues/312. It is good to note that the same bahavior is in this sim, but I'll defer to the same conclusion in https://github.com/phetsims/masses-and-springs/issues/312#issuecomment-413325300.
Test device: Dell Laptop Operating System: Win 10 Browser: Edge Problem description: For https://github.com/phetsims/QA/issues/220. Seems to be the same issue as https://github.com/phetsims/masses-and-springs/issues/312. The performance when dragging a mass, ruler, or slider on the stretch or bounce screen is poor. The mass trails noticeably behind the mouse. Making the window smaller improves or fixes the issue. Steps to reproduce:
Screenshots:
Troubleshooting information (do not edit):