vim-webgl-viewer icon indicating copy to clipboard operation
vim-webgl-viewer copied to clipboard

Report Failure to create WebGL context, or low FPS

Open cdiggins opened this issue 4 years ago • 1 comments

A pop-up saying when the WebGL context can't be created of the FPS is too low (e.g. below 8FPS) should show on load, saying what the graphics card is, and providing them with a clue that maybe they need to enable hardware acceleration for their browser to get the best experience. Some GPU info can be gathered with this code: https://gist.github.com/cvan/042b2448fcecefafbb6a91469484cdf8

cdiggins avatar Nov 03 '21 19:11 cdiggins

Failure to created WebGL context could be exposed to the user (host environment) as an "onError" callback in the options. Would need an API to request the FPS from the viewer. This is all arguably a feature request and more appropriate for the vim-webgl-app.

cdiggins avatar Nov 12 '21 17:11 cdiggins