有点好奇 VS Code 1.40 更新里提到的禁用 GPU 加速会解决某些问题,具体是什么问题呢?

2019-11-14 05:48:29 +08:00
 Livid

https://code.visualstudio.com/updates/v1_40

"We have heard issue reports from users that seem related to how the GPU is used to render VS Code's UI. These users have a much better experience when running VS Code with the additional --disable-gpu command-line argument. Running with this argument will disable the GPU hardware acceleration and fall back to a software renderer."

3752 次点击
所在节点    Visual Studio Code
3 条回复
xupefei
2019-11-14 06:39:19 +08:00
有些硬件(比如 Parallels 的虚拟显卡)对 GPU 加速支持有问题,在虚拟出来的 Win10 里会出现全黑色窗口。
不光是 vscode,这个问题在运行一些 unity 游戏时也会出现。

另外还有性能问题,有些虚拟机的显卡(比如 vmware fusion )在进行 GPU 加速时会严重拖慢宿主机。
paopjian
2019-11-14 07:04:32 +08:00
以前的版本有过性能比较差的电脑用双屏开 vscode 会很卡,需要启动项禁用 GPU 加速,现在只是放到设置里了
crab
2019-11-14 07:05:05 +08:00
开启硬件加速模式应该是黑屏这个问题。Chrome 有的版本也会这样。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/619355

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX