Re:MariOCaml: HTML5 Mario, written exclusively in OCaml
by yoklov on Sunday December 20, 2015 @07:24PM
(#10768915)
Does RAF really run at 144hz on those monitors? That's surprising... and means I probably need to fix some code before those get more common.
[ Parent
| on HN ]
Re:MariOCaml: HTML5 Mario, written exclusively in OCaml
by moron4hire on Sunday December 20, 2015 @07:32PM
(#10768936)
It's a W3C recommendation that it runs at the native refresh rate of the monitor. I made a pen not too long ago for comparing different types update loops for different browsers. http://codepen.io/SeanMcBeth/pen/MaMjbZ
I tried to stick to statically allocated values, but there is clearly some sort of GC happening in Firefox. Chrome is stable, but Internet Explorer is extremely noisy.