Three.js渲染性能效果提升策略
前言
使用chrome时,fps总是不能达到最高60,尝试使用谷歌浏览器金丝雀版本,开启浏览器WebGPU加速,亲测fps性能提升10+。
1.下载
2.为Chrome canary选择图形处理器
3.为Chrome canary设定图形设置为高性能
4.重启电脑
5.启用硬件加速模式
6.启用WebGPU
about://flags
#enable-unsafe-webgpu
用chrome在测试环境可以开启下边这个
chrome://flags/#enable-unsafe-webgpu
7.测试webGPU打开状态
https://toji.github.io/webgpu-clustered-shading/
其他说明
如果同时使用Chrome和Chrome canary打开测试网站,性能会以二者中最低值渲染显示。