ReSharper makes VS2022 scrolling extremely laggy Follow
I am currently testing out trial version of resharper, and one thing I've immediately noticed is that resharper makes scrolling the text editor in VS2022 extremely laggy. Above certain mouse cursor velocity, the text editor window sometimes gives up on scrolling altogether and just hangs in place. As soon as I suspend resharper, the scrolling is smooth again. This applies to mouse wheel scrolling too, which is also noticeably delayed. It's quite frustrating.
Here's a video:
What's unfortunately not obvious from the video is that there's a significant delay between mouse wheel input and scrolling happening on the screen when resharper is enabled, and the delay completely disappearing once resharper is suspended.
I am on RTX2080Ti and Ryzen 3900X with 64GB of RAM, so hardware should not be an issue, especially when just rasterizing a window of text.
How can I fix this?
Please sign in to leave a comment.
Thanks for the screencast!
1) Could you please collect a performance trace while reproducing the issue? The instructions are at https://resharper-support.jetbrains.com/hc/en-us/articles/210652849-Collect-Timeline-performance-snapshot-in-Visual-Studio.
2) My educated guess is that this could be caused by inlay hints in a particularly large file. Could you please try disabling inlay hints in R# settings and check whether this helps with laggy scrolling?
1. Here's a link to the performance trace archive: https://drive.google.com/file/d/19Hq-Nw4tq4ql4NIE6CvUdKCfBT0PlgBU/view?usp=sharing
2. Disabling the inline hints helped slightly, but the scrolling performance is still nowhere near the native VS2022 experience. The scrolling refresh rate is still 15-25FPS at best, and the input delay between scrolling inputs and actual effect is still like 200ms compared to the usual ~15ms.
I just don't think it's acceptable for a ~1000 line text file to scroll at anything lower than a monitor refresh rate on high end hardware in 2022.
Thanks! I've filed https://youtrack.jetbrains.com/issue/RSRP-489649/Slow-scrolling, we'll investigate.
Could you please try the 2022.2.2 bugfix released yesterday? It should contain a fix for a related issue - https://youtrack.jetbrains.com/issue/RSRP-489373/Performance-Slow-scrolling. Thanks!
I tried the latest 2022.2.2, but I am seeing only slight improvement. The stuttering/jerkiness of the scrolling seems to have improved a bit, but there's no change in the significant reduction of scrolling framerate and input delay:
Ok, thanks for the info. If possible, could you please collect another performance trace with 2022.2.2? Would be much appreciated, thanks!
Sure, here it is: https://drive.google.com/file/d/19JL-2AczqbkL2l1HzZNfsDfEZfeBfnrF/view?usp=sharing