-
Notifications
You must be signed in to change notification settings - Fork 12
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
Node Properties and phet-io undeferring #1312
Comments
We discussed prioritization of this in PhET-iO meeting. @jonathanolson will work on this after Density and Molecule Shapes (which will likely go pretty quickly). |
Geometric optics is now blocked by this as well, phetsims/geometric-optics#318
|
Discussed in PhET-iO meeting again today. @kathy-phet mentioned that this can take precedence over advancing buoyancy for @jonathanolson. |
Note that this issue (or something related) is also likely responsible for phetsims/geometric-optics#316:
|
…ons from the target Property) to make Scenery compatible with undeferring, see phetsims/scenery#1312
Fix and simplifications to TinyForwardingProperty made above. We're treating it a bit less in a "forwarding" way, where the value of the forwarding and target Properties can diverge (generally in deferred cases, which keeps things "synchronous" for Scenery). This can also diverge during certain phases of the listener notifications, however not in a way that seems to be happening in practice currently (and is also unlikely to happen in the future). |
Thanks @zepumph for the collaboration! Removing my assignment. |
I pinged the individual issues about adding their sims back to the state wrapper. I will leave this open, and close in ~1 week if nothing else comes of it. Thanks @jonathanolson for the quick turnaround. |
Now I see that GO and basics has been tested at least 20 times. Given how easily it was to reproduce, I'm feeling good about this change. Closing. Thanks again @jonathanolson. |
…ty notifications don't work, we will still consistently listen/dispose the correct things. See phetsims/my-solar-system#190, phetsims/my-solar-system#189, similar to phetsims/sun#362 and #1312
Scenery's synchronous-update code (PDOMDisplaysInfo, RendererSummary) makes a hard assumption that it is only handling updates for one change at a time (e.g. one visibility change, all the others are the same as before). It makes the assumption that the one change happening NOW is the only change, and that the rest of the state is consistent.
It wasn't designed to handle cases where an arbitrary number of different things are now out-of-date, and could be notified later and in an arbitrary order. The graph operations are likely to fail if multiple visibleProperties undefer at the same time.
This may be causing phetsims/greenhouse-effect#46.
Possible routes:
The text was updated successfully, but these errors were encountered: