-
Notifications
You must be signed in to change notification settings - Fork 5
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
Energy chunks vibrate when more or added or removed #238
Comments
I think I've seen this wiggling a few times before. @jbphet can you take a look at this on your Edge? |
On Edge, fps while doing this is about 35 |
Nice find @KatieWoe. If there is some obvious, low-effort solution to address the wiggling (which I doubt), then it'd be nice to address. However, given that Edge is a low-use platform, and the wiggling doesn't seem all that problematic, I would be okay with leaving things be. |
I did also see it on other platforms on Mac. |
Behavior in safari is almost more noticeable. |
I tested on macOS 10.14.3 in Chrome and Safari. The vibration of the energy chunks is definitely noticeable, though not as bad as what I observe when using @jbphet @chrisklus can you review? I think this would be worth some investigation since this is a change from 1.0, and not only limited to low-use platforms. |
Very noticeable in IE |
I'm only finding little bits of time to work on this here and there, so I'm going to log a lot of notes so that it's easier to ramp back up each time I take a look.
|
…se more "real" values for many of the parameters, see #238
I think I've found and corrected the main issue, which was that the reusable force vectors in the distribution algorithm were not being cleared out on each iteration of the force calculations, leading to a buildup that only becomes apparent when longer time steps occurred, which happens on Edge and IE. This has been fixed. I also ended up simplifying the algorithm while I was working on this such that it no longer uses as many "tweaky" variables, since this was making it hard to maintain. As part of this, I started using values for the constants that control the algorithm that are more relatable to the real world. |
I have cherry picked the commit with the fix to the 1.1 branch. Unassigning for now, and this should be verified for the next release off of either master or the 1.1 branch. |
Looks much more natural now. |
To clarify #238 (comment), the shaking still occurs, but is less pronounced and looks more acceptable on the mentioned platforms from what I've seen. |
Device
Dell Laptop
OS
Win 10
Browser
Edge
Problem Description
For phetsims/qa#298
When there are a large number of chunks present (meaning the water beaker, especially when it is heated) adding and especially removing chunks causes the ones around it to vibrate for a brief time. Only really seen on Edge so far, but it can be replicated in chrome if you use speed=3. Doesn't occur in published version but also very minor. Assigning @arouinfar as well to decide if behavior is acceptable.
Steps to reproduce
Screenshots
The text was updated successfully, but these errors were encountered: