Are there any ways to evaluate the performance of a video card in order to set the appropriate settings for a webGL application? I use blend4web.
For example, there is such a code that recognizes the relative pixel density and on its basis increases the resolution of the Canvas:
var devicePixelRatio = window.devicePixelRatio || 1; if ( devicePixelRatio > 1 ){ m_config.set("canvas_resolution_factor", 2); } But at the same time, some non-top android devices or old iPhones may not draw such settings, FPS will be low. In their case, it is better to leave the canvas_resolution_factor as it is.
The problem is that it is not known how to make estimates about device performance.
Approximately the same can be said about desktops. On devices with a good video card, you can set additional effects.