mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-31 09:13:56 +02:00
Update engine.ts
This commit is contained in:
@@ -462,15 +462,13 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
// 不具合のもと
|
// 不具合のもと
|
||||||
//this.scene.blockMaterialDirtyMechanism = true;
|
//this.scene.blockMaterialDirtyMechanism = true;
|
||||||
|
|
||||||
await this.scene.whenReadyAsync();
|
|
||||||
|
|
||||||
this.startRenderLoop();
|
this.startRenderLoop();
|
||||||
|
|
||||||
|
await this.scene.whenReadyAsync();
|
||||||
|
|
||||||
if (SNAPSHOT_RENDERING) {
|
if (SNAPSHOT_RENDERING) {
|
||||||
// 早く有効にしすぎることが原因かは不明だがクラッシュすることがあるので遅らせてみる
|
// 必ずシーンが少なくとも1フレームレンダリングがされてから呼ばれるように注意すること。そうしないとタイミングによってはエンジンがクラッシュする
|
||||||
setTimeout(() => {
|
this.sr.enableSnapshotRendering();
|
||||||
this.sr.enableSnapshotRendering();
|
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.domEvents.on('keydown', (ev) => {
|
this.domEvents.on('keydown', (ev) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user