Disable VR Overlay GPU Acceleration

This commit is contained in:
Natsumi
2024-11-18 16:52:11 +13:00
parent 78dc8ea42d
commit 5ed92aed82
12 changed files with 1065 additions and 28 deletions

View File

@@ -8172,9 +8172,17 @@ speechSynthesis.getVoices();
if ((await VRCXStorage.Get('VRCX_DisableGpuAcceleration')) === '') {
await VRCXStorage.Set('VRCX_DisableGpuAcceleration', 'false');
}
if (
(await VRCXStorage.Get('VRCX_DisableVrOverlayGpuAcceleration')) === ''
) {
await VRCXStorage.Set('VRCX_DisableVrOverlayGpuAcceleration', 'false');
}
$app.data.proxyServer = await VRCXStorage.Get('VRCX_ProxyServer');
$app.data.disableGpuAcceleration =
(await VRCXStorage.Get('VRCX_DisableGpuAcceleration')) === 'true';
$app.data.disableVrOverlayGpuAcceleration =
(await VRCXStorage.Get('VRCX_DisableVrOverlayGpuAcceleration')) ===
'true';
$app.data.disableWorldDatabase =
(await VRCXStorage.Get('VRCX_DisableWorldDatabase')) === 'true';
$app.methods.saveVRCXWindowOption = async function () {
@@ -8199,6 +8207,10 @@ speechSynthesis.getVoices();
'VRCX_DisableGpuAcceleration',
this.disableGpuAcceleration.toString()
);
VRCXStorage.Set(
'VRCX_DisableVrOverlayGpuAcceleration',
this.disableVrOverlayGpuAcceleration.toString()
);
AppApi.SetStartup(this.isStartAtWindowsStartup);
};
$app.data.photonEventOverlay = await configRepository.getBool(