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
);
})
Estimate browser's vsync based on rAF
<script type="module">
import vsyncEstimate from 'https://cdn.skypack.dev/vsync-estimate';
</script>
Estimate browser vsync using rAF
import estimateVSync from 'vsync-estimate';
estimateVSync().then(refreshRate => {
console.log(Estimated Vsync: ${Math.round(refreshRate)}Hz
);
})