简体   繁体   English

如何在Eclipse Oxygen中修复编辑器滚动延迟?

[英]How do I fix editor scroll lag in Eclipse Oxygen?

I just started using Eclipse Oxygen.2 Release (4.7.2) on Windows 10. The editor is lagging when I scroll up and down using the up/down arrow keys. 我刚开始在Windows 10上使用Eclipse Oxygen.2 Release(4.7.2)。当我使用向上/向下箭头键向上和向下滚动时,编辑器滞后。 In other words, when I move the caret vertically outside the view, the text doesn't scroll smoothly. 换句话说,当我将插入符号垂直移动到视图外时,文本不会平滑滚动。 But the line numbers scroll smoothly. 但是行号滚动顺畅。 The lag is less with plain text than Java files. 纯文本的滞后比Java文件少。 I tried turning spell check off, but that didn't help. 我试过关闭拼写检查,但这没有帮助。

Problem solved: The scroll lag disappeared recently, and the editor is working smoother than ever. 问题解决了:最近滚动滞后消失了,编辑器比以前更顺畅了。 I think this happened after I got a notification in Eclipse saying that updates were available, and I clicked the notification and did the updates. 我认为这发生在我收到Eclipse中的通知后说可以获得更新,然后我点击了通知并进行了更新。

Found one culprit: the mouse! 发现一个罪魁祸首: 老鼠!

Having a " gamer " mouse (mine is a Logitech G502) that send mouse position at the rate of 1000 Hz have a strong impact on Eclipse vertical scrolling lag. 使用“ 游戏玩家 ”鼠标(我的是Logitech G502)以1000 Hz的速率发送鼠标位置会对Eclipse垂直滚动延迟产生强烈影响。

  • Lowering the mouse rate to 500 Hz reduce the lag but do not eliminate it. 将鼠标速率降低到500 Hz可以减少滞后,但不能消除它。
  • Lowering the mouse rate to 250 Hz practically eliminate the lag. 将鼠标速率降低到250 Hz实际上消除了滞后。

This is really a problem specific to Eclipse, because I have tested with WebStorm and IntelliJ and neither of them manifest any lag while scrolling the same test file. 这实际上是Eclipse特有的问题,因为我已经使用WebStorm和IntelliJ进行了测试,并且在滚动相同的测试文件时它们都没有显示出任何延迟。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM