1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-26 21:54:16 +02:00
This commit is contained in:
syuilo
2026-04-28 12:20:14 +09:00
parent f44d566933
commit 58e617af6d
3 changed files with 20 additions and 26 deletions

View File

@@ -7,7 +7,7 @@ import { reactive, ref, shallowRef, triggerRef, watch } from 'vue';
import * as BABYLON from '@babylonjs/core';
import { cm } from '../utility.js';
import RoomWorker from './worker?worker';
import { RoomEngine } from './engine.js';
import { GRAPHICS_QUALITY_MEDIUM, RoomEngine } from './engine.js';
import type { ShallowRef } from 'vue';
import type { RoomState } from './engine.js';
import type { ObjectDef, RoomStateObject } from './object.js';
@@ -82,7 +82,7 @@ export class RoomController {
}
};
} else {
const babylonEngine = new BABYLON.WebGPUEngine(canvas, { doNotHandleContextLost: true, powerPreference: 'high-performance' });
const babylonEngine = new BABYLON.WebGPUEngine(canvas, { doNotHandleContextLost: true, powerPreference: 'high-performance', antialias: this.options.graphicsQuality >= GRAPHICS_QUALITY_MEDIUM });
babylonEngine.compatibilityMode = false;
babylonEngine.enableOfflineSupport = false;
babylonEngine.onContextLostObservable.add(() => {
@@ -99,7 +99,6 @@ export class RoomController {
this.engine = new RoomEngine(this.roomState.value, {
canvas,
engine: babylonEngine,
sharpen: this.options.resolution >= 1,
...this.options,
});