Hacker News new | ask | show | jobs
by Borkdude 950 days ago
Is there a way to get the refresh rate programmatically?
2 comments

Yeah, you drive things with https://developer.mozilla.org/en-US/docs/Web/API/window/requ... since it's dynamic
I was not able to find one, but this js snippet:

> https://gist.github.com/capfsb/3fd1b700b4732debb29aefd576cf5...

correctly reports 240hz for me.

The fun thing is that 240 makes everything too slow, whereas 120 works fine.