-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance Issues in Microsoft Edge #423
Comments
Thanks @KatieWoe, can you please comment on how the performance on Edge you observed in 1.4.0-dev.1 compares to the performance you observe of the published version on the same platform? |
Sure. I just did a quick test and the skater didn't seem to lag as much on the published version. However, there did seem to be significant lag in the thumbs on the slider and when dragging the points on the track. I'm about to head out for the day but I will do some more thorough testing tomorrow morning to make sure it is an issue with Edge and not my computer etc. |
I just checked the published simulation in edge on two windows 10 computers. They didn't show the same jumping lag that I saw in the dev version. However, there was very significant lag when click and dragging objects such as the thumbs on sliders, the skater, or track pieces. The simulation also ran significantly slower. It took about 5 seconds longer for the skater to go back and forth on the first track on the intro screen in Edge compared to Chrome. This difference is not present, or at least not noticeable, in the dev version. The dev version also does not have the lag when click and dragging. |
Thanks @KatieWoe. I confirmed that framerate drops when using the sliders with a moving skater on Edge. From #423 (comment), it is good to hear that there are other places where performance has improved since the previous release. @ariel-phet are you able to test this on Edge? If so, can you help decide if we should spend time trying to opitimize this? |
@jessegreenberg looking at this on Edge Win 10, the skater stalls pretty brutally in the situation @KatieWoe described (wide parabolic track). It seems worthy of at least some initial investigation of why performance is so choppy in this situation on Edge (it is perfectly smooth on Chrome). I would say spend an hour or two investigating, or maybe schedule an hour or two with JO in the coming weeks to take a look. It would be good to understand what is causing the big performance hit. |
Interesting it happens more with the friction slider, which indicates that it is not related to rendering since there is no graphical representation for friction on the track. |
It looks like most of the time is being spent in EDIT for more info: More explicitly, the time is mostly being spent in DOM calls like |
The sim slows down about as much when I move the track or change its shape. I figured out that if I remove the track layer, performance while dragging the slider is much improved. This includes on the Playground screen while the skater is moving, was able to test with query params Strangely, this is the opposite of what I would expect from #423 (comment) because the track is using |
Ah, I forgot that we have rootRenderer set to |
Rendering the EnergySkateParkBasicsControlPanel with |
@KatieWoe can you please see if performance has improved on latest phettest? |
Performance seems much better on master. The sliders seem to lag behind the mouse when dragging a bit, but the performance is drastically improved. Have not yet noticed any unusual text rendering. |
Thanks @KatieWoe! I see what you mean with the slight delay while dragging the sliders. I am seeing a similar delay in Edge in a few other sims (like Pendulum Lab). @ariel-phet can you please review and let us know if the dragging delay for sliders is worth investigating? I personally don't think the delay is great enough to inhibit interaction, but I don't feel that I can make the decision. |
@jessegreenberg performance is MUCH better. I am not experiencing any lag that seems problematic. Nice work! closing |
Test device:
Hanson and Dell
Operating System:
Windows 10
Browser:
Edge
Problem description:
Skater lags while on track. This is mostly the case when sliders are adjusted while the skater is moving, particularly the friction slider. This problem so far seems to only appear in Edge.
This is for phetsims/qa/issues/134
Steps to reproduce:
Troubleshooting information (do not edit):
The text was updated successfully, but these errors were encountered: