turbulenz / webgl_benchmark

Polycraft.gl is an online benchmark application that measures the performance of your WebGL compatible device, powered by Polycraft and ga.me.
polycraft.gl
Other
7 stars 0 forks source link

Refresh rate detector to estimate the maximum performance #50

Open ianballantyne opened 10 years ago

ianballantyne commented 10 years ago

As the browser calls requestAnimationFrame at the refresh rate of the monitor it is not possible to reliably submit data any faster. Detecting the refresh rate by running requestAnimationFrame in an empty loop should help give an indicator what the maximum frame rate could be.