From a0ca949c593bfe93601f87e829787d971f3c806c Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Tue, 25 Apr 2023 17:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=B0=9D=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dwindows=20cpu=E5=8D=A0=E7=94=A8100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/State.js | 1 + 1 file changed, 1 insertion(+) diff --git a/model/State.js b/model/State.js index 28b499e..685a7d0 100644 --- a/model/State.js +++ b/model/State.js @@ -87,6 +87,7 @@ export default new class OSUtils { async init () { if (!await this.initDependence()) return + if (process.platform == 'win32') this.si.powerShellStart() // 初始化GPU获取 if ((await this.si.graphics()).controllers.find(item => item.memoryUsed && item.memoryFree && item.utilizationGpu)) { this.isGPU = true