I am developing a game with PIXI.js for desktop devices. PIXI has both WebGL and Canvas renderers; we will use WebGL wherever it is supported by the device.
My problem is that some low-level devices technically support WebGL, although it does not work well due to the slow GPU. In some cases, Canvas rendering will work much better.
How can I decide at runtime which visualizer to use?
Perhaps the WebGL context contains some useful information.
source
share