mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 19:44:05 +02:00
Update engine.ts
This commit is contained in:
@@ -1567,10 +1567,13 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
|
|
||||||
public resize() {
|
public resize() {
|
||||||
// 一旦snapshot renderingを無効にしておかないとエラーが出る(babylonのバグ?)
|
// 一旦snapshot renderingを無効にしておかないとエラーが出る(babylonのバグ?)
|
||||||
// ...が、一旦無効にしたらしたで複数のマテリアルがそれぞれ入れ替わる(?)という謎の現象が発生するためコメントアウトしとく(エラー出てもレンダリングが止まったりするわけでもないし)
|
// ~~...が、一旦無効にしたらしたで複数のマテリアルがそれぞれ入れ替わる(?)という謎の現象が発生するためコメントアウトしとく(エラー出てもレンダリングが止まったりするわけでもないし)~~
|
||||||
//if (SNAPSHOT_RENDERING) this.sr.disableSnapshotRendering();
|
// ↑追記: engine.resizeした後に一瞬待つことで回避できることが判明
|
||||||
|
if (SNAPSHOT_RENDERING) this.sr.disableSnapshotRendering();
|
||||||
this.engine.resize();
|
this.engine.resize();
|
||||||
//if (SNAPSHOT_RENDERING) this.sr.enableSnapshotRendering();
|
setTimeout(() => {
|
||||||
|
if (SNAPSHOT_RENDERING) this.sr.enableSnapshotRendering();
|
||||||
|
}, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public destroy() {
|
public destroy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user