--- title: Chrome add button to toggle GPU tags: SideeX --- Chrome add button to toggle GPU === Command to start chrome with gpu-disabled --- - `open -a "Google Chrome" --args --load-extensions="${extensionPath}" --disable-gpu` 可以在 `chrome://gpu` 中查看現在是否使用 GPU ==一般情況下如下圖:== ![](https://i.imgur.com/Dpkt2J1.png) ![](https://i.imgur.com/nXCe7Oy.png) 使用的 GPU 為 `Intel(R) UHD Graphics 617` ==Disable-gpu 後如下圖:== ![](https://i.imgur.com/S0GEtkL.png) ![](https://i.imgur.com/AoIJM3e.png) 使用 Google [swiftshader](https://github.com/google/swiftshader) Button --- ![](https://i.imgur.com/OFawzUj.png) 控制流程: button :arrow_right: ChromeProxy.exeGpuHandler :arrow_right: store & action to store value in state.template :arrow_right: 開啟 selenium 時讀取值 current problems: - mac: - 必須要關閉所有視窗才可以正確的開啟或者關閉硬體加速。 - linux: - normal mode 沒有辦法停用 GPU。 - windows: - None