1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 15:15:45 +02:00
This commit is contained in:
syuilo
2026-04-15 19:08:08 +09:00
parent a3c3f7ba91
commit b0d4ab371b
2 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ export class RoomController {
this.worker.postMessage({ type: 'init', canvas: offscreen, roomState: this.roomState.value }, [offscreen]);
this.isReady.value = true;
} else {
const babylonEngine = new BABYLON.WebGPUEngine(canvas);
const babylonEngine = new BABYLON.WebGPUEngine(canvas, { doNotHandleContextLost: true });
babylonEngine.compatibilityMode = false;
await babylonEngine.initAsync();
this.engine = new RoomEngine(this.roomState.value, { canvas, engine: babylonEngine });

View File

@@ -311,6 +311,7 @@ class ModelManager {
}
merged.freezeWorldMatrix();
merged.metadata = { ...this.root.metadata };
if (!this.hasTexture) merged.convertToUnIndexedMesh();
this.bakedMeshes = [merged];
this.bakedCallback?.([...this.bakedMeshes, ...excludeMeshes]);
@@ -757,6 +758,8 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
this.emit('loadingProgress', { progress: loadedCount / objects.length });
})));
this.scene.blockMaterialDirtyMechanism = true;
if (SNAPSHOT_RENDERING) {
this.sr.enableSnapshotRendering();
}