- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
获取WebGL上下文时,可以指定failIfMajorPerformanceCaveat
属性:
var context = canvas.getContext('webgl', {'failIfMajorPerformanceCaveat': true});
Because of the direct access to the GPU allowed by WebGL, browsers must ensure that running your code will not cause a major security issue. For some specific drivers that are not perfectly secure, the browser can prevent hardware acceleration in order to prevent security issues. [...] On these devices, WebGL will software rendering instead, resulting in a slower but safer experience.
最佳答案
实际上,有关failIfMajorPerformanceCaveat
的正确报价是:
Context creation will fail if the implementation determines that the performance of the created WebGL context would be dramatically lower than that of a native application making equivalent OpenGL calls.
To enforce this, IE has a block-list of drivers that are not safe for use with hardware acceleration. On these devices, WebGL will software rendering instead, resulting in a slower but safer experience.
Overrides the built-in software rendering list and enables GPU-acceleration on unsupported system configurations.
关于javascript - 是否可以在Electron中禁用failIfMajorPerformanceCaveat安全措施?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49321559/
我是一名优秀的程序员,十分优秀!