DisableGpuAcceleration option

This commit is contained in:
Natsumi
2024-11-08 00:02:18 +13:00
parent 10dae1707e
commit a47c5f8f7a
4 changed files with 40 additions and 2 deletions

View File

@@ -1356,6 +1356,7 @@ speechSynthesis.getVoices();
}
});
// we don't update friend state here, it's not reliable
var state = 'offline';
if (json.platform === 'web') {
state = 'active';
@@ -4490,7 +4491,7 @@ speechSynthesis.getVoices();
) {
if (this.debugFriendState) {
console.log(
`Fetching offline friend in an instance ${ctx.name}`
`Fetching offline friend in an instance from getCurrentUser ${ctx.name}`
);
}
API.getUser({
@@ -4547,7 +4548,21 @@ speechSynthesis.getVoices();
ctx.isVIP = isVIP;
if (typeof ref !== 'undefined') {
ctx.name = ref.displayName;
// wtf, from getCurrentUser only, fetch user if online in offline location
if (fromGetCurrentUser && stateInput === 'online') {
if (this.debugFriendState) {
console.log(
`Fetching friend coming online from getCurrentUser ${ctx.name}`
);
}
API.getUser({
userId: id
});
return;
}
}
this.updateFriendDelayedCheck(ctx, location, $location_at);
}
};
@@ -8001,7 +8016,12 @@ speechSynthesis.getVoices();
if (!(await VRCXStorage.Get('VRCX_ProxyServer'))) {
await VRCXStorage.Set('VRCX_ProxyServer', '');
}
if ((await VRCXStorage.Get('VRCX_DisableGpuAcceleration')) === '') {
await VRCXStorage.Set('VRCX_DisableGpuAcceleration', 'false');
}
$app.data.proxyServer = await VRCXStorage.Get('VRCX_ProxyServer');
$app.data.disableGpuAcceleration =
(await VRCXStorage.Get('VRCX_DisableGpuAcceleration')) === 'true';
$app.data.disableWorldDatabase =
(await VRCXStorage.Get('VRCX_DisableWorldDatabase')) === 'true';
$app.methods.saveVRCXWindowOption = async function () {
@@ -8018,6 +8038,10 @@ speechSynthesis.getVoices();
'VRCX_DisableWorldDatabase',
this.disableWorldDatabase.toString()
);
VRCXStorage.Set(
'VRCX_DisableGpuAcceleration',
this.disableGpuAcceleration.toString()
);
AppApi.SetStartup(this.isStartAtWindowsStartup);
};
$app.data.photonEventOverlay = await configRepository.getBool(

View File

@@ -225,6 +225,8 @@
"startup": "Start at Windows startup",
"minimized": "Start minimized",
"tray": "Minimize to tray when closing",
"disable_gpu_acceleration": "Disable GPU Acceleration",
"disable_gpu_acceleration_tooltip": "Only change this option if you know what you're doing, may fix issues with UI, requires restarting VRCX",
"proxy": "Proxy settings"
},
"favorites": {

View File

@@ -83,6 +83,11 @@ mixin settingsTab()
+simpleSwitch("view.settings.general.application.startup", "isStartAtWindowsStartup", "saveVRCXWindowOption")
+simpleSwitch("view.settings.general.application.minimized", "isStartAsMinimizedState", "saveVRCXWindowOption")
+simpleSwitch("view.settings.general.application.tray", "isCloseToTray", "saveVRCXWindowOption")
div.options-container-item
span.name {{ $t('view.settings.general.application.disable_gpu_acceleration') }}
el-tooltip(placement="top" style="margin-left:5px" :content="$t('view.settings.general.application.disable_gpu_acceleration_tooltip')")
i.el-icon-warning
el-switch(v-model="disableGpuAcceleration" @change="saveVRCXWindowOption")
div.options-container-item
el-button(size="small" icon="el-icon-connection" @click="promptProxySettings()") {{ $t("view.settings.general.application.proxy") }}
//- General | Favorite
@@ -96,6 +101,9 @@ mixin settingsTab()
//- General | Game Log
div.options-container
span.header {{ $t('view.settings.general.logging.header') }}
div.options-container-item
span.name(style="min-width:225px") {{ $t('view.settings.advanced.advanced.cache_debug.udon_exception_logging') }}
el-switch(v-model="udonExceptionLogging" @change="saveOpenVROption")
div.options-container-item
span.name(style="min-width:225px") {{ $t('view.settings.general.logging.resource_load') }}
el-switch(v-model="logResourceLoad" @change="saveLoggingOptions")
@@ -562,7 +570,6 @@ mixin settingsTab()
div.options-container
span.header {{ $t('view.settings.advanced.advanced.cache_debug.header') }}
br
+simpleSwitch("view.settings.advanced.advanced.cache_debug.udon_exception_logging", "udonExceptionLogging", "saveOpenVROption")
div.options-container-item
span.name {{ $t('view.settings.advanced.advanced.cache_debug.disable_gamelog') }}
el-switch(v-model="gameLogDisabled" @change="disableGameLogDialog")