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.

Home Page:polycraft.gl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refresh rate detector to estimate the maximum performance

ianballantyne opened this issue · comments

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.