Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing in the editor is very laggy on Linux #162

Closed
eugen-v opened this issue Nov 19, 2015 · 19 comments
Closed

Typing in the editor is very laggy on Linux #162

eugen-v opened this issue Nov 19, 2015 · 19 comments
Milestone

Comments

@eugen-v
Copy link

eugen-v commented Nov 19, 2015

Since the 0.10.1 update, typing anything in the editor is very laggy: characters appear with about 0.5 seconds delay and almost never in the same order I actually typed them on the keyboard.

Possibly related: scrolling to the top of a file in the editor triggers a slower top-down refresh of the contents that apper in the editor. I actually see how the code is refreshed like in a bitmap, line by line, pixel-wise.

I'm using Ubuntu Linux 15.10. This problem didn't occur with previous Visual Studio Code updates.

Later edit: I've tested it again on the same computer, but on a 15 inch screen and it works ok, without any lag when typing. Only when Visual Studio Code is on a 24 inch monitor the typing is lagging.

@meritozh
Copy link

Had test. It won't appear in OS X. How about reinstall VSCode?

@eugen-v
Copy link
Author

eugen-v commented Nov 19, 2015

I've reinstalled it. The issue is still there.

@klingtnet
Copy link

I can't confirm this issue, typing in visual-studio-code works without any noticeable delay on my Arch Linux machine:

Version 0.10.1
Commit df352367df2efcfa9d602d471e4e2f42140a0f05
Date 2015-11-17T15:21:23.766Z
Shell 0.34.1
Renderer 45.0.2454.85
Node 4.1.1

@maritz
Copy link

maritz commented Nov 19, 2015

I'm running it in a LinuxMintDebianEdition (in a vm) and do not experience this issue, so it is not a generic Linux build issue.

@eugen-v
Copy link
Author

eugen-v commented Nov 19, 2015

I've tested it again on the same computer, but on a 15 inch screen and it works ok, without any lag when typing. Only when Visual Studio Code is on a 24 inch monitor the typing is lagging.

@klingtnet
Copy link

I'm assuming that the 15" screen is the display of your laptop and the 24" model should be an external monitor, so which connection do you use for the external one (VGA,HMDI, DVI, DisplayPort)? Can you cross check if this problem persists with any other browser-based editor, g.e. Atom or Brackets.

@eugen-v
Copy link
Author

eugen-v commented Nov 19, 2015

The 24" monitor is connected via HDMI.
However, I can confirm that the same issue is present in Atom v1.2.2: Laggy on 24" monitor, smooth on the 15" laptop display.

@klingtnet
Copy link

Can you give a little more information on your hardware? Maybe your processor is to slow, because Atom as well as VS Code use quite a lot resources.

@eugen-v
Copy link
Author

eugen-v commented Nov 19, 2015

My laptop's specifications are: Intel Core i5 (model 460M, up to 2.53 GHz), 4 GB RAM, SSD, Intel i5's GPU (even though the laptop has a GeForce GT 325M discrete graphics card, it's not used under Ubuntu Linux).
The issue that I reported never occurred to me before, and I've been using Visual Studio Code since the very first public release.

@alexdima
Copy link
Member

@eugen-v

What if you use the 24" monitor and resize the VSCode window to be smaller? What if you open 3 editors side-by-side in VSCode in the 24" monitor, and type in one of them... (i.e. is the problem one of the viewport size and the size of the GPU layers?)

How does it work when opening Chrome (you can also help by mentioning the Chrome version you try with) and typing in the editor at http://www.typescriptlang.org/Playground . Do you see such strange differences between the 15" / 24" or the window size?

@alexdima alexdima added the info-needed Issue requires more information from poster label Nov 24, 2015
@eugen-v
Copy link
Author

eugen-v commented Nov 27, 2015

The editor at http://www.typescriptlang.org/Playground works good in Chrome (Version 46.0.2490.86 (64-bit)) on the 25" monitor.

I get good performance in VSCode in a smaller window on the 24" monitor, even with 3 editors side-by-side.
Interestingly enough, on the 24" monitor, I get bad performance in a maximized window, but good performance in full-screen (even with 3 editors side-by-side).

@klingtnet
Copy link

You mean 15" right?
It's a shot in the dark, but it sounds like bug/performance problem in Unity. If your window is maximized, then Unity doesn't have to render window borders etc.

@eugen-v
Copy link
Author

eugen-v commented Nov 27, 2015

Nope, I mean 24" :)

I think it's an issue with (large) maximized windows. If I resize a non-maximized window to be almost as large as a maximized one, the editor's performance is still good.

@egamma egamma added the freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues label Nov 30, 2015
@alexdima
Copy link
Member

alexdima commented Dec 9, 2015

@eugen-v

Given this only happens on Ubuntu 15.10 when the window is maximized, but it doesn't happen when the window is almost maximized, and also not when in full-screen mode, I'm thinking it is a bug in Chromium...I have found a relevant issue on atom/atom#9724 which again hints this is a problem with Electron/Chromium.

On the Chromium side, I could find this comment which hints Chromium has issues with Intel opensource MESA drivers.

@alexdima alexdima added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Dec 9, 2015
@alexdima alexdima removed their assignment Dec 9, 2015
@egamma egamma removed the info-needed Issue requires more information from poster label Dec 10, 2015
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@leifcr
Copy link

leifcr commented Dec 11, 2015

@alexandrudima I've tested VScode on the same computer as seen in atom/atom#9724

System configuration: (Dell xps 15-9530)
Ubuntu 15.10
Resolution 3200x1200
Intel HD Graphics 5000
Intel Core i7-4702hq
16 GB ram
SSD drive

And the behaviour is laggy when maximized, and fine in fullscreen and non-maximized. Same issue as in atom/atom#9724, so it's probably related to Chromium/electron.

@leifcr
Copy link

leifcr commented Dec 11, 2015

@egamma
Copy link
Member

egamma commented Dec 11, 2015

@leifcr thank you! Keeping the issue open to track the upstream problem.

@alexdima
Copy link
Member

@egamma Looks like it is a confirmed driver issue of Ubuntu, not of Chromium/Electron

@alexdima alexdima removed the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Dec 11, 2015
@der-daniel
Copy link

@leifcr thank you so much!
This has fixed my issue.

@egamma egamma removed the freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues label Feb 6, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants