Hi Michael,
Yes, there something strange with webkit timers. Nodeeditor also uses setInterval, but it works much smoother than my SpherePoints script.
When I move mouse cursor inside Nodeeditor window - everything works good, but when I move cursor outside the window - a significant stutters appears.
Thank you for links, I'll read it tomorrow.
quote: For this script it would be better to not use a timer at all and instead update things when a UI event is fired, that should ensure no delaying and also not burn CPU cycles by continuous polling when nothing is being actually changed in the UI.
Yes, you're right. Your script works faster.
quote: Please let me know if you have seen any other script performance regressions in v4 that do not involve setInterval.
I tested all my scripts with MacOS 10.13.2 - everything works great (except the scripts which uses setInterval). I noticed significant performance increase!
For example, Cloth simulation script works about two times faster than before. I'm impressed.
|