-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Comments
Had test. It won't appear in OS X. How about reinstall VSCode? |
I've reinstalled it. The issue is still there. |
I can't confirm this issue, typing in visual-studio-code works without any noticeable delay on my Arch Linux machine:
|
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. |
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. |
The 24" monitor is connected via HDMI. |
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. |
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). |
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? |
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. |
You mean 15" right? |
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. |
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. |
@alexandrudima I've tested VScode on the same computer as seen in atom/atom#9724 System configuration: (Dell xps 15-9530) 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. |
Filed against ubuntu here: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1525207 |
@leifcr thank you! Keeping the issue open to track the upstream problem. |
@egamma Looks like it is a confirmed driver issue of Ubuntu, not of Chromium/Electron |
@leifcr thank you so much! |
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.
The text was updated successfully, but these errors were encountered: