vsync-estimate

Estimate browser's vsync based on rAF

Usage no npm install needed!

<script type="module">
  import vsyncEstimate from 'https://cdn.skypack.dev/vsync-estimate';
</script>

README

vsync-estimate

Estimate browser vsync using rAF

Usage

import estimateVSync from 'vsync-estimate';

estimateVSync().then(refreshRate => { console.log(Estimated Vsync: ${Math.round(refreshRate)}Hz); })