Remix.run Logo
WD-42 6 days ago

VSCode (and all Electron based editors) have undeniable input latency. Zed is built by the same team that developed Atom and Electron and one of their stated goals is to make up for the shortcomings of these technologies.

If you don't feel that VSCode is slow, it's because you are used to it.

matwood 5 days ago | parent | next [-]

> VSCode (and all Electron based editors) have undeniable input latency.

Start up time, sure. But VSCode was lauded as the first performant Electron based editor. I just tested VSCode, Zed, and vim and I can't see any difference from when I press a key to when a character shows up on the screen (appears instantly). I'd be curious to see the results of a blind test, and wonder if people's biases against Electron are showing up.

Barrin92 6 days ago | parent | prev [-]

>If you don't feel that VSCode is slow, it's because you are used to it.

I don't think this is a fair claim. When you start doing an apples to apples comparison, that is to say make full use of IDE and auto-completion features it's difficult to see a difference given that the latency and speed of the plugins starts to dominate any millisecond difference in input latency or rendering speed.

WD-42 6 days ago | parent | next [-]

No. When a press a character key on my keyboard, it should appear in my editor immediately. All other IDE features like auto-completion happen asynchronously.

SAI_Peregrinus 6 days ago | parent | next [-]

> When a press a character key on my keyboard, it should appear in my editor immediately.

Seems to work the same for me in VSCode, CLion, and nvim. I don't doubt that you have issues with it (I've experienced slow editors & laggy input, it sucks) but I don't think it's inherent to VSCode. Doesn't mean it's not a bug, but if I had that issue I'd try with no extensions to verify, then binary search disabling the extensions I want until I find the one causing the lag.

Barrin92 6 days ago | parent | prev | next [-]

>All other IDE features like auto-completion happen asynchronously

in the technical sense, but you as a developer don't use auto-completion asynchronously. It's not like you autocomplete and continue typing and then come back to the completion. When you complete at point you have wait. Whether that keypress takes 2 or 3 milliseconds isn't going to make a difference when the inter-process communication of your editor and its services is magnitudes slower. It's not like programming is like playing an FPS game. You're not in any meaningful sense limited by your mechanical input speed.

typpilol 6 days ago | parent | prev | next [-]

Are you telling me that it was a delay when you type in vscode? If so, either your configuration or computer is doing something wrong

Shank 6 days ago | parent | next [-]

> Are you telling me that it was a delay when you type in vscode? If so, either your configuration or computer is doing something wrong

This is simply not true. There is inherent latency in any rendering pipeline, and VSCode and Atom both have input latency that is significantly higher than other editors like Sublime Text owing to a bloated rendering pipeline. You can read more about this and how easy it is to introduce latency simply by changing basic things like keyboards here: https://danluu.com/input-lag/ or editors specifically: https://pavelfatin.com/typing-with-pleasure/

Fraterkes 6 days ago | parent | prev | next [-]

The thing their computer might be doing wrong is just being a slightly older budget laptop, which is not a particularly rare setup.

Just try to use vscode on a ~500 dollar laptop from 2019 or something

trenchpilgrim 6 days ago | parent | prev [-]

It's super noticeable on a high refresh display. VSC is like playing a video game at 20FPS.

Vanilla settings on a high end gaming PC.

Myrmornis 6 days ago | parent | prev [-]

If you press a key in VSCode, it does appear immediately.

eviks 6 days ago | parent | prev [-]

The difference in startup speed is measured in seconds, bit milliseconds. And difference in input speed can be dozens of ms, which is also noticeable