opensmalltalk-vm icon indicating copy to clipboard operation
opensmalltalk-vm copied to clipboard

Big performance hit with mouse cursor movement in commit 4d3f02655d

Open caoliver opened this issue 7 years ago • 1 comments

I don't know how cursor draws got much more expensive, but in previous VMs, I'd see a small CPU increase (%11 CPU on Linux/X11) if I moved the mouse quickly back and forth on the background form. As of commit 4d3f02655d, I see the CPU spike to 80% for the same task. This is using a Squeak5.1 image, and the machine is a not too old i5 desktop. Something seems to have taken an unreasonable hit. What gives?

caoliver avatar Oct 05 '18 14:10 caoliver

This seem to have to do with the change to aio.c. Reverting this "fixes" the issue. I think I understand why the change was made, but it turns squeak into a near busy loop on rapid mouse movement. Is there a better way?

caoliver avatar Oct 05 '18 15:10 caoliver