1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-31 04:33:58 +02:00

Update engine.ts

This commit is contained in:
syuilo
2026-04-26 11:33:30 +09:00
parent be434949a4
commit e703705d60

View File

@@ -462,7 +462,10 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
// 不具合のもと // 不具合のもと
//this.scene.blockMaterialDirtyMechanism = true; //this.scene.blockMaterialDirtyMechanism = true;
this.scene.executeWhenReady(() => { await this.scene.whenReadyAsync();
this.startRenderLoop();
if (SNAPSHOT_RENDERING) { if (SNAPSHOT_RENDERING) {
// 早く有効にしすぎることが原因かは不明だがクラッシュすることがあるので遅らせてみる // 早く有効にしすぎることが原因かは不明だがクラッシュすることがあるので遅らせてみる
setTimeout(() => { setTimeout(() => {
@@ -470,9 +473,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
}, 100); }, 100);
} }
this.startRenderLoop();
});
this.domEvents.on('keydown', (ev) => { this.domEvents.on('keydown', (ev) => {
if (ev.code === 'KeyE') { if (ev.code === 'KeyE') {
if (this.isEditMode) { if (this.isEditMode) {