News for hackers. Stuff that matters.
Re:Zed on Linux Is Here by varispeed on Wednesday July 10, 2024 @04:33PM (#40931200)
Okay, call me weird, but why our standards have fallen so low?

VSCode may appear fast, but still has massive latency. The Zed website claims 97ms.

I can feel it is laggy.

Why can't we have response time under 1ms? Even 5ms would be a massive improvement.

For me latency is a massive productivity killer as it feels like walking in a swamp and it always puts me off.

Re:Zed on Linux Is Here by bigstrat2003 on Wednesday July 10, 2024 @05:55PM (#40931916)
Honestly I don't think that the problem with VSCode is speed, even. It's bloat. It uses gobs of RAM just to open up a few text files. I compared it to Sublime Text a while back and it was something like 500 MB (for Sublime) to 1-1.5 GB (VSCode). That's not acceptable in my view.
Re:Zed on Linux Is Here by scblock on Wednesday July 10, 2024 @04:50PM (#40931352)
A typical 60 Hz screen refresh is 16.7 ms
Re:Zed on Linux Is Here by jay_kyburz on Wednesday July 10, 2024 @05:18PM (#40931578)
If you haven't tried a 144hz or even a 240hz gaming PC, you should. You can really feel the difference dragging things around the screen.

(I'm not sure I would notice typing, but for dragging windows around I could never go back to 60fps.)

Re:Zed on Linux Is Here by mirpa on Wednesday July 10, 2024 @07:29PM (#40932491)
I can certainly tell difference between 60 and 120 Hz in fast paced games, but I would not notice it in UI.
Re:Zed on Linux Is Here by FireBeyond on Thursday July 11, 2024 @12:18AM (#40933661)
I thought so too, but for a while I had 2 144Hz monitors on my Mac Pro[1] and very much noticed it in the UI, window dragging was smoother, browser scrolling too, absolutely noticeable.

[1] Then Apple released the Pro Display and Big Sur and people wondered "how does the math work for a 6K display and bandwidth?" The answer, they completely fucking broke DP 1.4. Hundreds of complaints, different monitors, different GPUs, all broke by Big Sur to this day just so Apple could make their 6K display work.

My screens could do 4K HDR10 @ 144 Hz. After Big Sur? SDR @ 95 Hz, HDR @ 60Hz. Ironically I got better results telling my monitors to only advertise DP 1.2 support, then it was SDR@120, HDR@95Hz.

Studiously ignored by Apple because they broke the standard to eke out more bandwidth.

Re:Zed on Linux Is Here by Ygg2 on Thursday July 11, 2024 @03:14AM (#40934355)
You can notice higher frame rates if you're in a competitive FPS, not a code editor. Unless you are playing CS2 in Emacs.
Re:Zed on Linux Is Here by iotku on Thursday July 11, 2024 @04:42AM (#40934735)
Properly levereged GUI editors have the potential to use the extra refresh rate for smother animations/smooth scrolling, though that's pretty far away from Emacs territory.
Re:Zed on Linux Is Here by varispeed on Thursday July 11, 2024 @06:41AM (#40935271)
Choppy scrolling adds to the feeling of walking through swamp.
Re:Zed on Linux Is Here by foldr on Thursday July 11, 2024 @06:24AM (#40935186)
I do not notice any difference between my 120Hz work MacBook Pro and my 60Hz home MacBook Air. I might notice if I did a side-by-side comparison and looked closely. But why would I?
Re:Zed on Linux Is Here by lapphi on Thursday July 11, 2024 @07:29AM (#40935512)
60hz gives me a headache after a few hours, been like that since I was a kid.
Re:Zed on Linux Is Here by whalesalad on Wednesday July 10, 2024 @04:36PM (#40931227)
I agree with you -- but aiming for 1ms performance is pretty hard. That is 1/1000th of a second. Your keyboard probably has higher latency than that. Physics cannot be defeated in this regard.
Re:Zed on Linux Is Here by garblegarble on Wednesday July 10, 2024 @07:20PM (#40932432)
Expanding on this, there's a detailed analysis of the various contributors to editor latency (from keyboard electronics to scanout) by one of the jetbrains devs at[1]. They show average keypress-to-USB latency for a typical keyboard of 14ms!

1: https://pavelfatin.com/typing-with-pleasure/

Re:Zed on Linux Is Here by varispeed on Thursday July 11, 2024 @06:43AM (#40935277)
There are keyboards with 1kHz polling.
Re:Zed on Linux Is Here by wholinator2 on Thursday July 11, 2024 @11:50AM (#40937953)
Yes but it takes longer than that for the signal to reach the usb port. And i doubt if many of us are typing at 1000 keystrokes/second. Apparently that's around 12,000 words/minute assuming average word length of 5 characters.
Re:Zed on Linux Is Here by varispeed on Saturday July 13, 2024 @01:17PM (#40955361)
1ms latency is about what can be achieved with USB.
Re:Zed on Linux Is Here by silisili on Wednesday July 10, 2024 @11:47PM (#40933514)
I grew up a damn good HPB Q1 player at 250ish ms.

If you type and wait for the letter, I could see that being annoying. My brain works more in waves, my hands type a block and it's there on the screen. I've never once thought of character latency, but maybe that's my HPB roots.

Re:Zed on Linux Is Here by hyperbrainer on Thursday July 11, 2024 @01:19AM (#40933877)
I just want to point out that most keyboards hav a latency at 10-20 ms[1], so 1 ms is impossible.

[1]https://danluu.com/keyboard-latency/

Re:Zed on Linux Is Here by NoahKAndrews on Thursday July 11, 2024 @01:39AM (#40933958)
That includes the physical travel time, which is an extremely important caveat.
Re:Zed on Linux Is Here by hyperbrainer on Thursday July 11, 2024 @02:49AM (#40934211)
Sure. But that is what the experience is, right? When I press a key, the entire end to end latency is what I care about.
Re:Zed on Linux Is Here by Narishma on Thursday July 11, 2024 @02:30PM (#40939306)
Is there a physical reason for it? Or is it just that keyboard manufacturers don't care about latency?