Closed Nancy-Salpepi closed 1 year ago
According to the performance test it is taking 2.05 seconds when I have maxKicks = 30, and all the balls are kicked across all 4 players.
Exploring the performance breakdown and also guessing from prior performance issues, I think there's a lot of redrawing happening to state setting... This is another tricky one I'll need help with.
This is really weird. My performance profiling results were less fruitful than yours. All I got was a "pointer-up" even taking up all 3 seconds.
I'll try restarting my browser to see if that helps. In the mean time I think probably sync pairing would be best.
Current mishmash patch from collaboration with @marlitas
I worked on this a bit more and found that the patch above introduced a bug into the MAD calculations in the state wrapper. This to me signals that there is some inconsistency throughout the sim as to when and how these data updates are triggered, but I think that is way beyond our scope at this point. This patch seems to be working well, and I was also able to cut the time it took clearData
to run by half. I would like to go over it one more time with @samreid though before committing.
I'm not seeing a delay in rc.3 with MacBook/Dell.
Test device MacBook Air M1 chip
Operating System 14.0
Browser all browsers
Problem description For https://github.com/phetsims/qa/issues/993, launching the sim with all balls kicked for the players on the Variability screen, results in a delay when Reset All is pressed. This was noticeable on my mac with 20 balls kicked for each player. I then tried in on an older computer (Dell with Intel Core i7-6700HQ CPU @ 2.60GHz) and the delay was longer.
Steps to reproduce
Visuals Video using the Dell:
https://github.com/phetsims/center-and-variability/assets/87318828/6773a45c-2359-4d16-96dc-7167778abb77