frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Toys/Lag: Jerk Monitor

https://nothing.pcarrier.com/posts/lag/
32•ptramo•5h ago

Comments

ptramo•5h ago
With 240 Hz displays you probably want your mouse polling setting at 4000 or better 8000 Hz. This tool lets anyone confirm that on their hardware.
BearOso•5h ago
That's a recent invention. Only the latest gaming mice can poll at that rate, and not particularly well on USB2. They're usually limited to 1000.

Neat tool, though. I'm also very sensitive towards latency.

naoru•4h ago
Seems like it doesn't properly handle mouse events on Safari in macOS and only shows "frames with no pointer events". I assume it's because "pointerrawupdate" event is not supported there.

Also it's interesting that with ProMotion enabled it reports 16.67ms per frame (indicating 60Hz redraw rate) in Safari, but in Chrome it's 8.33.

ptramo•4h ago
Yes, I rely on pointerrawupdate. Thanks for letting me know! Unfortunately pointermove is typically synced with graphics in my limited experience, and I think I'd rather not show anything than provide wildly inaccurate numbers.
naoru•4h ago
Oh and you also might be interested in this one too: https://github.com/cakama3a/Polling

Although it's for gamepads, it's pretty much indispensable in debugging gamepad-related latency issues. For example, I found that my presumably 1000Hz controller can do only 500Hz in ideal conditions and it starts to drop at a much lower distance from the computer than advertised. Neat stuff.

daft_pink•4h ago
I found that plugging my keyboards directly into my Mac’s limited USB ports is noticably faster.

I’m curious if there is a USB hub that I could buy of higher quality as my mac doesn’t have too much i/o

lostlogin•1h ago
‘USB hub’ and ‘quality’ never go together.

I’d love to be wrong on this but haven’t been so far.

sillysaurusx•3h ago
I can buy that humans can see at least 120hz at a minimum. 60Hz is the generally accepted threshold, but I’ve long suspected that 120Hz has mostly imperceptible effects that are still noticeable, if rarely.

I can’t buy this:

> I've also learnt I do benefit from the 8 kHz setting of my mouse, as even at 3200 DPI with fast & smooth motion, some frames still miss a pointer update

It may be true that pointer updates were being missed. But does that really affect anything?

It turns out that there’s a way to test this experimentally. Do a double blind experiment, just like in science. If you can tell which monitor is 240hz more than randomly, then it matters. Ditto for the pointer updates.

The corollary is that if you can’t tell with better than random chance, then none of this matters, no matter how much you think it does.

Experiments like this have decisively settled the “Does higher sampling rate matter when listening to music?” debate, among other questions. People still swear that they can tell that there’s a difference, but it’s expectation bias. They’re mistaken.

(10ms drops every few seconds would definitely be noticeable though; that wasn’t the point.)

ptramo•3h ago
As per the post, I wrote this tool to confirm I was getting jerks of ~10ms every few seconds on one USB port and not the other. This would _suggest_ I can catch differences around the ballpark of 100 Hz.

I'm game for a randomized blinded test on 120 Hz refresh rate vs 240 Hz refresh rate. I would indeed be very curious to confirm I can tell the difference with a proper protocol.

Many years back (we were on CRTs), I was in similar shoes, convinced my friend couldn't tell the difference between 60 Hz and 90 Hz when playing video games.

Turns out he only needed to look at the pointer through one push of the mouse to tell right away, successful 100% of the time in a blinded experiment.

ptramo•3h ago
As to how you can perceive the difference between 120 events per second and 240, I have what I hope is a fairly simple explanation.

It's like lightning strokes of tens of microseconds making a lasting impression on your perception of the scene. You don't "count" strokes over time, but in space.

When you make circles fast and large enough on screen, you can evaluate the number of cursors that appear before your eyes. At 4 circles per second, is each circle made of ~60 pointers or ~30? Belief not fact: it's not hard to guess.

amluto•55m ago
> Many years back (we were on CRTs), I was in similar shoes, convinced my friend couldn't tell the difference between 60 Hz and 90 Hz when playing video games.

That’s a silly experiment. I could look at a CRT with a completely static image and tell almost immediately whether it was at 60Hz, 90Hz or 120Hz. Flickr at 60Hz was awful, 90Hz was clearly perceptible, and even 120Hz was often somewhat noticeable. And most CRT/graphics card combos would become perceptibly blurry in the horizontal direction at 120Hz at any reasonable desktop resolution, so you could never truly win. Interlaced modes made the flicker much less visible, but the crawling effect was easy to see and distracting.

andai•7m ago
The effects you describe are specific to CRTs only, right? Caused by the electron beam effectively illuminating one pixel at a time?
haiku2077•3h ago
> I can buy that humans can see at least 120hz at a minimum. 60Hz is the generally accepted threshold, but I’ve long suspected that 120Hz has mostly imperceptible effects that are still noticeable, if rarely.

There are videos on youtube showing people perceive differences at much higher framerates. e.g. https://www.youtube.com/watch?v=OX31kZbAXsA (long video, so you can skip to the end - they found that even casual players were performing measurably more consistently at 240Hz than even 144Hz.)

Anecdotally, I recently switched to playing racing games at 165FPS and the difference is massive!

tverbeure•3h ago
Higher refresh rates don't have to be perceptible to be useful: they can shift the balance in head-to-head gaming.

Imagine 2 identical gaming setups with 2 players that have the same skill set. In an FPS game, you'd expect each of those players to win 50% of the games.

Now switch one monitor from 120Hz to 240Hz. On average, the player on the 240Hz monitor will see their adversary 4ms earlier than the player on the 120Hz monitor and thus be able to push the mouse button earlier too.

nkrisc•2h ago
I think this sort of effect odd what makes people think they can tell the difference - they can notice the indirect side-effects that correlate with the difference.

A pro FPS player might notice that they loose contests peeking around corners more often. Obviously network latency in online games will be a factor as well, but since it likely averages out for both players over time, I would guess you can mostly discount it along with alternating who’s doing the peeking.

I don’t think anyone could look at a scene on a 120hz vs 240hz display and tell the difference, there needs to be some indirect clue.

sjoedev•1h ago
I play video games at a decently high level (like top ~10% in a few competitive games). To support what you’re saying, I can tell the difference between 144hz and 240hz if I’m in control. For example, if I can shake the screen around.

If I’m just watching, I’m not sure I could even tell the difference between 60hz and 144hz.

brookst•43m ago
Do any competitive FPS games actually render 240 different frames in a second? Because if both players’ hardware is doing 60FPS, that monitor difference changes nothing.
gblargg•2h ago
There could be side-effects of these higher rates that are noticeable, or bugs in handling different rates.
tuatoru•1h ago
> Experiments like this have decisively settled the “Does higher sampling rate matter when listening to music?” debate...

Not really relevant. Music is experienced after a Fourier transform, in frequency space,

The more telling example is that experienced drummers get frustrated by lag of 2 ms from computer-generated effects. That's 500 Hz.

tofof•1h ago
So tired of defending against this same, old, completely wrong intuition from people especially those saying "do the science" to justify their ignorance instead of looking themselves since the science has already been done and it's coming up on a full century old.

From this one paper alone, humans can perceive information from a single frame at 2000 Hz.

https://doi.org/10.1080/00223980.1945.9917254

Humans can read numbers and reproduce them immediately a 5 digit number is displayed for 1 frame at 400 fps. This is a single exposure, it is not a looping thing with persistence of vision or anything like that. 7 digit numbers required the framerate to be 333 fps. Another student produced 9 digit number from a single frame at 300 fps. These were the average results. The record results were a correct reproduction of a 7 digit number from a single viewing of a single frame at 2000 Hz. This was the limit within 2% accuracy of the tachistoscopic equipment in question. From the progression of the students chasing records, no slowing of their progression had ever been in sight. The later papers from this author involve considerable engineering difficulty to construct an even faster tachistocope and are limited by 1930s-1940s technology.

This research led the US Navy in WW2 to adopt tachistotopic training methods for aircraft recognition replacing the WEFT paradigm (which had approximately a 0% success rate) to a 1 frame at 75 fps paradigm which led to 95% of cadets reaching 80% accuracy on recognition, and 100% of cadets reaching 62.5% accuracy after just 50 sessions.

Yes, humans can see 2000 fps. Yes, humans can see well beyond 2000 fps in later work from this researcher.

https://doi.org/10.1080/00223980.1945.9917254

Yes, humans can detect flicker well above 1000 fps in daily life at the periphery of vision with cone cells as cone cells can fire from a single photon of light and our edge detection circuits operate at a far higher frequency than our luminance and flicker-fusion circuits. Here's flicker being discriminated from steady light at an average of 2 kHz for 40 degree saccades, and an upper limit above 5 kHz during 20 degree saccades, which would be much more typical for eyes on a computer monitor.

There is no known upper limit to the frequency of human vision that is detectable. As far as I know, all studies (such as this one I link) have always been able to measure up to the reliable detection limit of their equipment, never up to a human limit.

chrisweekly•30m ago
Best comment in the threads, IMHO. Thanks for the details.
amluto•37m ago
The author didn’t say that they have a use for those 3200 updates per second other than as a workaround for some other issue. With a competently composited desktop and applications that pace input processing and frame generation well, and ignoring pointer acceleration, 1 correctly timed update per frame is enough. (As far as I know this does not exist from any vendor on a modern system other than for games, although really old Apple II-era software often got it right.). For acceleration, some pointer history is needed. And no one has a mouse that has an API that allows the host to pace the updates.

Presumably the 3200 Hz is needed for a combination of reasons:

- Under ideal conditions, if you want less than 10% variation in the number of samples per frame at 240Hz, you may need ~2400Hz. This effect is visible even by human eyeballs — you can see multiple cursor images across your field of view, and uneven spacing is noticeable.

- The mouse itself may work less well at a lower sampling rate.

- The OS and input stack may be poorly designed and work better at higher rates.

In any case, the application and cursor implementation are unlikely to ask for a mouse location more than once per frame, so the user is not really using 3200 updates per second, but that’s irrelevant.

xnx•3h ago
Does this tool measure something different than? https://joltfly.com/mouse-latency-test/
ptramo•2h ago
Yes, pointerrawupdate events for this one, mousemove for the one you linked. The latter tends to sync to the display in my very limited experience.

There are other differences in the tools, mine was designed for what I wanted to understand so I'm biased toward it.

jerlam•11m ago
I bought a Logitech wireless mouse called the Marathon which boasted an amazing three-year battery life on two AAs. I initially thought it was broken; it had a maddening delay where the sensors turned off after a short idle time, so when I wanted to use the mouse, it didn't register the first movements since it had to "wake up".

This delay wasn't present on the Logitech gaming mouse I previously used, probably a combination of a high polling rate (500Hz) and a much longer idle delay. The battery life was also much shorter, only 250 hours on high-performance mode, but I just recharged a set of AA batteries every week so it was never an issue.

I ended up returning the Marathon mouse.

rufus_foreman•9m ago
Sometimes I think "Uncontrollable Urge" is the greatest Devo song ever. Other times, I think maybe "Jerk Monitor".

Show HN: I wrote a "web OS" based on the Apple Lisa's UI, with 1-bit graphics

https://alpha.lisagui.com/
113•ayaros•1h ago•35 comments

Get the location of the ISS using DNS

https://shkspr.mobi/blog/2025/07/get-the-location-of-the-iss-using-dns/
218•8organicbits•7h ago•71 comments

More than 1 in 5 Show HN posts are now AI-related, get > half the votes/comments

https://ryanfarley.co/ai-show-hn-data/
42•rfarley04•2d ago•17 comments

Functions Are Vectors (2023)

https://thenumb.at/Functions-are-Vectors/
115•azeemba•4h ago•52 comments

opencode: AI coding agent, built for the terminal

https://github.com/sst/opencode
28•indigodaddy•2h ago•11 comments

Jane Street barred from Indian markets as regulator freezes $566 million

https://www.cnbc.com/2025/07/04/indian-regulator-bars-us-trading-firm-jane-street-from-accessing-securities-market.html
25•bwfan123•6h ago•6 comments

Lessons from 863 episodes of This American Life

https://indarktrees.com/misc/tal/
30•cryzinger•2h ago•15 comments

Cool People [pdf]

https://www.apa.org/pubs/journals/releases/xge-xge0001799.pdf
32•ilamont•2h ago•10 comments

Hannah Cairo: 17-year-old teen refutes a math conjecture proposed 40 years ago

https://english.elpais.com/science-tech/2025-07-01/a-17-year-old-teen-refutes-a-mathematical-conjecture-proposed-40-years-ago.html
254•leephillips•4h ago•40 comments

Collatz's Ant and Σ(n)

https://gbragafibra.github.io/2025/07/06/collatz_ant5.html
14•Fibra•3h ago•2 comments

Toys/Lag: Jerk Monitor

https://nothing.pcarrier.com/posts/lag/
32•ptramo•5h ago•27 comments

Metriport (YC S22) is hiring engineers to improve healthcare data exchange

https://www.ycombinator.com/companies/metriport/jobs/Rn2Je8M-software-engineer
1•dgoncharov•3h ago

1945 TV Console Showed Two Programs at Once

https://spectrum.ieee.org/dumont-duoscopic-tv-set
20•pseudolus•1d ago•4 comments

Can we test it? Yes, was can [video]

https://www.youtube.com/watch?v=MqC3tudPH6w
51•zdw•3d ago•49 comments

Overclocking LLM Reasoning: Monitoring and Controlling LLM Thinking Path Lengths

https://royeisen.github.io/OverclockingLLMReasoning-paper/
33•limoce•7h ago•0 comments

Serving 200M requests per day with a CGI-bin

https://simonwillison.net/2025/Jul/5/cgi-bin-performance/
270•mustache_kimono•19h ago•231 comments

Hidden interface controls that affect usability

https://interactions.acm.org/archive/view/july-august-2025/stop-hiding-my-controls-hidden-interface-controls-are-affecting-usability
532•cxr•21h ago•374 comments

Overthinking GIS (2024)

https://scottsexton.co/post/overthinking_gis/
96•todsacerdoti•11h ago•32 comments

The weed-smoking, Labubu-loving, hackathon king of SF

https://sfstandard.com/2025/07/05/rene-turcios-hackathon-labubu-vibe-coding-chatgpt/
3•cainxinth•7h ago•0 comments

'Shit in, shit out', AI is coming for agriculture, but farmers aren’t convinced

https://theconversation.com/shit-in-shit-out-ai-is-coming-for-agriculture-but-farmers-arent-convinced-259997
29•lr0•2h ago•22 comments

What a Hacker Stole from Me

https://mynoise.net/blog.php
325•wonger_•21h ago•96 comments

Reinforcement Learning from Human Feedback (RLHF) in Notebooks

https://github.com/ash80/RLHF_in_notebooks
58•ash_at_hny•5h ago•1 comments

Eastern Baltic cod grow much smaller than they did due to overfishing

https://www.smithsonianmag.com/smart-news/these-cod-have-been-shrinking-dramatically-for-decades-now-scientists-say-theyve-solved-the-mystery-180986920/
261•littlexsparkee•1d ago•84 comments

Show HN: Simple wrapper for Chrome's built-in local LLM (Gemini Nano)

https://github.com/kstonekuan/simple-chromium-ai
6•kstonekuan•2h ago•0 comments

How to get started with Old English poetry

https://www.deadlanguagesociety.com/p/old-english-poetry
25•onthesly•2d ago•9 comments

Claude Code Pro Limit? Hack It While You Sleep

https://github.com/terryso/claude-auto-resume
72•suchuanyi•5h ago•50 comments

Luigi Lineri, the Man Who Collects and Categorizes Stones (2024)

https://mossandfog.com/luigi-lineri-the-man-who-collects-and-categorizes-stones/
9•Tomte•1h ago•2 comments

July 5, 1687: When Newton explained why you don't float away

https://multiverseemployeehandbook.com/blog/when-newton-explained-why-you-dont-float-away/
89•TMEHpodcast•16h ago•92 comments

Micro Common Lisp

https://t3x.org/mcl/index.html
21•todsacerdoti•1h ago•1 comments

Show HN: Pixel Art Generator Using Genetic Algorithm

https://github.com/Yutarop/ga-pixel-art
10•ponta17•5h ago•5 comments