1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 19:13:58 +02:00
This commit is contained in:
syuilo
2026-04-29 15:23:00 +09:00
parent fc97ba41af
commit 27578f2688
7 changed files with 23 additions and 5 deletions

View File

@@ -212,6 +212,8 @@ const resolutionRaw = prefer.model('world.resolution');
const resolutionAutoValue = computed<number>(() => deviceKind !== 'desktop' ? 0.5 : 1);
const resolution = computed<number>(() => resolutionRaw.value ?? resolutionAutoValue.value);
const antialias = prefer.model('world.antialias');
const useVirtualJoystick = isTouchUsing && (deviceKind === 'smartphone' || deviceKind === 'tablet');
//const useVirtualJoystick = true;
@@ -264,6 +266,7 @@ const roomControllerOptions = computed<RoomControllerOptions>(() => ({
graphicsQuality: graphicsQuality.value,
fps: fps.value,
resolution: resolution.value,
antialias: antialias.value,
useVirtualJoystick,
workerMode: true,
}));
@@ -380,7 +383,7 @@ onMounted(async () => {
}
});
watch([graphicsQuality, fps, resolution], () => {
watch([graphicsQuality, fps, resolution, antialias], () => {
refresh();
});
});
@@ -585,6 +588,10 @@ function showOtherMenu(ev: PointerEvent) {
value: 0.5,
}],
ref: resolutionRaw,
}, {
type: 'switch',
text: i18n.ts._room.antialiasing,
ref: antialias,
}, {
type: 'divider',
}, {