Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix editor scroll lag in Eclipse Oxygen?

Tags:

java

eclipse

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. 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. 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.

like image 851
Seiten Avatar asked Nov 08 '22 12:11

Seiten


1 Answers

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.

  • Lowering the mouse rate to 500 Hz reduce the lag but do not eliminate it.
  • Lowering the mouse rate to 250 Hz practically eliminate the lag.

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.

like image 83
Zartc Avatar answered Nov 15 '22 05:11

Zartc