Closed chrisklus closed 5 years ago
While I haven't seen these symptoms to the same extent you have, the fact that the lagginess is directly correlated with the clipshape means it's likely to cause performance issues on other platforms. I'll go ahead and implement this fix and monitor it in the future.
Modified the respective update functions to no longer re-generate the shapes for shape clipping. @chrisklus tested it on his machine and he's no longer experiencing lag. Will keep this open for testing.
Didn't see any problems on Win 10 chrome. Will check a few other platforms before closing.
Seems good
I've been noticing that when the console is open, the temperature slider on the thermometer is quite laggy:
@samreid suggested that maybe the code is just fast enough to not lag when the console is closed, but then when the dev tools are open and running, it sends the sim over a performance threshold and starts to lag.
@samreid and I did some investigating, and found that the whole shape was being replaced each time to update the clip area, instead of just updating the clip area of the shape.
The following patch eliminates the lagginess for me when the console is open:
A similar pattern would have to be applied to the saved graph, as the lagginess returns after I save a curve.
@arnabp do you see the same symptoms, and would you like to investigate this further?