-
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
Increase lattice size #315
Comments
iPad Air drops to 40 FPS on Interference screen, showing waves and particles, showing graph and with the wave detector in the wave area. But with the EventTimer, the physics is preserved. Still seems responsive enough to move forward (in my opinion). |
With a lattice size of 201, the simplest way to recalibrate the physics was to increase the EVENT_RATE by the corresponding dimension of the visible part of the lattice, which was |
Regarding the preceding comment, using the simplest calibration via changing the EVENT_RATE, I measured performance on Interference Screen, Sound Scene, timer on, wave detector on, "Both" displayed and both sources on, for iPad Air. 201: 8 fps (questionable) (EVENT_RATE 52) I'm inclined to check with @jonathanolson about whether I should be changing EVENT_RATE or some other parameter. |
In discussion with @jonathanolson we confirmed that an increase in lattice size must be met with a corresponding increase in number of steps (so the wave speed and frequency will remain the same). |
@arouinfar and I decided to commit 151 as the default and test that on Chromebooks now that it has the corresponding change in EVENT_RATE. |
In the above commits, I calibrated the water wave speed and the time scale for sound and light. Sound and light were measured to have proper frequency, wavelength and wave speed. For the water wave, we choose the time scale to match wall time and measure the empirical wave speed and wavelengths. |
@samreid I took master for a test drive on iPad Air (iOS 11.4) and Chromebook, focusing on the worst-case scenario described in #315 (comment) (but with the graph also on). I also spent a fair amount of time with light with Screen/Intensity on.
On the iPad Air, I generally observed 12-16 FPS. However, even at this frame rate, the animation looked smooth, and I did not experience laggy behavior when dragging around tools/probes. I would have never had realized the frame rate was so low had it not been for On the Chromebook, the frame rate was generally 45-55 FPS, but would occasionally dip into the 30's when the lattice got a bit noisy. Again, even when the frame rate was low, the animation looked good and moving tools around was never laggy. @samreid also mentioned the possibility that the sound particle physics may have been disturbed by changing the lattice resolution and EVENT_RATE, but the particle/wave correspondence still looks good to me. I think a lattice resolution of 151x151 is a happy medium, so let's proceed with that, @samreid. |
If we recalibrate in the future, we should just need to change the lattice size then do the steps in #315 (comment) for water wave speed, and sound and light time scale. The rest should be handled automatically by CALIBRATION_SCALE. |
My initial draft of recalibration at 151x151 (minus 20 on each edge for padding) is complete and published in a dev version here: https://phet-dev.colorado.edu/html/wave-interference/1.0.0-dev.63/phet/wave-interference_en_phet.html. Please note these changes spanned many parts, including but not limited to:
This draft will require careful testing of nearly every aspect of the physics. @arouinfar can you please test it out? |
@samreid I took dev.63 for a pretty thorough test drive, and I'm happy to report the physics looks good.
|
In #314 we decided to increase the lattice size to 201x201. We'll keep the same padding areas (20+20x20+20), I suspect. We'll need to make this core change and recalibrate the model. Regarding timing and priority, on Slack, I said:
@ariel-phet replied:
The text was updated successfully, but these errors were encountered: