-
Notifications
You must be signed in to change notification settings - Fork 0
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 testing and sign-off #99
Comments
The oldest device that I have access to is an iPad6 (circa 2018) running iPadOS 17.1.2. Performance seemed fine, everything responsive, animation smooth. |
Thanks @pixelzoom. I should be on campus tomorrow, so I can test on Chromebook and whatever performance-limited iPad QA recommends. |
@Nancy-Salpepi volunteer to test on a performance-challenged device. A Chromebook would be great -- please indicate which device(s) you use for testing, and what the performance is like on each device. If there are cases where performance is less than great, please describe whether usability is still OK, compromised, or unusable. Thanks! Things to check:
|
Device: Lenovo 100e Chromebook ChromeOS version 121.0.6167.188: electronsStop.movI also see extremely brief pauses periodically on the Generator screen. Most people probably wouldn't even notice it, but if I am looking at the bar magnet I see it. I went through the list above and didn't see any other issues. |
Thanks @Nancy-Salpepi. What are your thoughts on:
And a couple of questions about the pausing electron animation:
|
I asked @jonathanolson about the electron animation in Slack#DM. He said:
|
Usability is still OK.
Yes it does. Sorry that wasn't clear in my video.
Not that I can see. Let me know if there is anything else! |
Actually--changing my answer to that last question. The electron animation on the Battery stops when I move my pointer over and then away from the pickup coil. electronsStop2.mov |
Thanks @Nancy-Salpepi. |
Thanks for testing @Nancy-Salpepi! @pixelzoom I think it's worth some additional investigation to see if we can prevent the current animation from stuttering. |
@jonathanolson We would like to investigate why the cursor change is causing the sim to pause. I don't know where to start, and I cannot reproduce the problem on any of my devices. Thoughts on how to proceed? |
I checked this on a slightly better chromebook. While I did see this, it was slight enough I don't think I would have noticed if not looking for it. |
![]() I'm seeing style recalculation based on the cursor. I think we've run into bits of this before. It looks like some potential mitigations would actually make it worse (https://gist.github.com/paulirish/5d52fb081b3570c81e3a?permalink_comment_id=3799355#gistcomment-3799355 and document.body.style.cursor). There is a chance creating a single "overlay" DOM element could help (if we put the cursor on that), however that blocks a number of use cases (and prevents us from using DOM-Scenery nodes with interaction in the future), so I'm hesitant to even go down that route. I'm going to check into a few approaches that would also enable the DOM-Scenery nodes in a better way (if we remove SVG elements from hit-testing, cursor changes might not take so long in style recalculation). |
I don't see a good/easy way to proceed to increase performance in that case, besides generally simplifying the content of the simulation (reducing nodes). |
The electrons are already We could use a simpler shape for the background layer's pointer areas, allowing the user to grab the coil between the wires. I can't think of any cases where that would prevent the user from grabbing something, because there's nothing interactive behind the coil's background layer. Doing the same (using a simpler shape for pointer areas) for the foreground layer would mean that things "inside the coil" could not be grabbed between the wires. That would be inconvient for a few cases -- like this one, where you would not be able to grab the compass: ![]() All of that said... My inclination is to live with the slight pause when the cursor changes. @arouinfar Let's discuss. |
Thanks for the options @pixelzoom.
Given @KatieWoe's assessment in #99 (comment), I'm fine with leaving it as-is. Closing. |
Specifically from the CRC:
No performance issues were noted in dev-lite test phetsims/qa#1051, but that testing was on macOS and Win11, so did not include any performance-challenged devices (Chromebook, older iPad).
@arouinfar and I will review. If you have access to a performance-challenged device, that would be ideal.
The text was updated successfully, but these errors were encountered: