-
Notifications
You must be signed in to change notification settings - Fork 9
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
The sim really stutters when the mouse changes from hand to arrow and back #208
Comments
This was also observed by an independent group in Fluid Pressure and Flow, and we have promoted it to a general scenery issue: phetsims/scenery#275 |
Same issue on OSX10.9.2/Chrome37. Pretty severe. |
This seems like a high priority to fix as a scenery bug |
@jonathanolson can you help look into this? |
Didn't find any references to this in the Chromium bug tracker. Will try investigating workarounds. |
Please see comments in phetsims/scenery#275, it's somewhat written with ESPB in mind (large number of nodes). |
@jonathanolson said:
I tried commenting out the ticks in GaugeNode and GridNode, and getting rid of the ToggleButtonNode, but the reflow time is still very long in Win8/Chrome (difficult to tell if it helped much just by looking). |
Additionally setting |
Here is the current size of the scene graph: 1305 lines in the original version. |
Converting AttachDetachToggleButtons to use RadioButtons leaves the node count unchanged at 344. |
I switched from DeprecatedToggleButtons in the SceneSelectionPanel in #243 and now the node count is down around 578 |
Hmmmmmm... If I put ?standalone, then the node count drops to 372. Are we really using 206 nodes in the home screen + navbar? EDIT: Home screen => home screen + navbar. |
After the above commit, I am down to 542 nodes. |
After consolidating GridNod lines above, I am down to 510 nodes, and the delay on Win8/Chrome is looking significantly better. |
By the way, @jonathanolson said joist/scenery02has consolidated many joist nodes, which may reduce the number further (nearly half of the nodes are now joist). |
Checking with ?standalone reveals almost no delay, so perhaps joist is the next place to optimize. I also saw many duplicated nodes with the new RadioButtonGroup, perhaps that is another place we can optimize. |
I tried getting @jonathanolson's changes to NavigationBarScreenButton from joist/ohtwo and this reduced the number of nodes from 509 to 344. In my opinion, that is very significant. I'll look into merging that commit into master. |
Well, we have gone from 1305 lines and a huge delay to 344 lines and a very short delay, so I think this issue is ready to be closed. We will need to test the new navbar buttons, switching screens, the grid and the speedometer to make sure no new problems were introduced in these changes. |
After rendering some things in WebGL, we are down to 303 nodes. However, this latter reduction did not seem to reduce the "hitch" time significantly. |
In my opinion, this problem is sufficiently reduced for this sim, and acceptable for publication. Closing. |
This got worse in Chrome 38, see phetsims/scenery#275 and noted in #294 |
I did not notice any changes in the simulation performance in Safari 9537.85.10.17.1 |
This problem seems chrome specific. |
Not quite as bad on OSX 10.10 + Chrome Version 38.0.2125.104 on my MacBook Air (11-inch, Mid 2012) |
Also not much we can do about this until we are focusing more on WebGL. |
Agreed, wait until we have more webgl support. |
I am not seeing this happen at all, though I only have access to Windows 10. The general issue phetsims/scenery#275 has been closed because starting May 2015 developers began to report that this is no longer an issue. @samreid can this issue be closed? |
Yes, thanks! Closing. |
Win8/Chrome, The sim really stutters when the mouse changes from hand to and back
The text was updated successfully, but these errors were encountered: