You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[@zepmuph said] In Node.js we define this.phetioVisibleProperty. We weren't sure whether to null it out in the constructor (adding more keys to every single Node) or to lazily add it to only the Nodes that are PhET-iO instrumented. Keep in mind this will be done for opacity and pickability as well. We weren't sure whether to minimize the number of Node keys or hidden classes. It seems clearer to put them in the constructor, but we weren't sure how essential it is to minimize the number of Node attributes.
That is a really good question. Because we are inheriting from Node all the time, it complicates the hidden class question (so intuitively I think the minimization of Node keys might be better for performance/memory, but I haven't investigated that). Sounds like something good to test, to see what effect it would have.
I think this should be in a separate issue. @jonathanolson please let me know if I can help with this. Currently it is not in the Node constructor, even set to null.
The text was updated successfully, but these errors were encountered:
From #1046 and #490 (comment):
@jonathanolson said:
I think this should be in a separate issue. @jonathanolson please let me know if I can help with this. Currently it is not in the Node constructor, even set to null.
The text was updated successfully, but these errors were encountered: