Re:Pinball implemented using Squint, a ClojureScript dialect
by Borkdude on Saturday November 18, 2023 @05:17AM
(#38317711)
Is there a way to get the refresh rate programmatically?
[ Parent
| on HN ]
Re:Pinball implemented using Squint, a ClojureScript dialect
by jakopo87 on Saturday November 18, 2023 @05:47AM
(#38317946)
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.
Re:Pinball implemented using Squint, a ClojureScript dialect
by eplawless on Saturday November 18, 2023 @12:51PM
(#38322249)
Yeah, you drive things with https://developer.mozilla.org/en-US/docs/Web/API/window/requ... since it's dynamic