This commit is contained in:
syuilo 2026-05-16 11:15:27 +09:00
commit 7c2e3adf25
3 changed files with 8 additions and 8 deletions

View file

@ -3565,7 +3565,7 @@ _miWorld:
frameRate: "フレームレート"
resolution: "解像度"
failedToInitialize: "初期化に失敗しました"
crushed_description: "バグ、またはデバイスのリソース不足の可能性が考えられます。"
crushed_description: "描画が継続できなくなりました。デバイスのリソース不足の可能性が考えられます。"
antialiasing: "アンチエイリアス"
_miRoom:
@ -3573,5 +3573,5 @@ _miRoom:
gridScale: "グリッドサイズ"
thereAreUnsavedChanges: "未保存の変更があります"
revertAllChangesConfirmation: "全ての変更を取り消し、部屋を最後に保存した状態まで戻しますか?"
yourDeviceNotSupported_title: "MisskeyRoomを起動できません"
yourDeviceNotSupported_title: "MisskeyRoomを起動できません"
yourDeviceNotSupported_description: "お使いのデバイスがMisskeyRoomをサポートしていないか、デバイスのリソース不足などにより一時的に利用できなくなっています。\nMisskeyRoomを動作させるには、WebGPUをサポートするデバイス・ブラウザが必要です。"

View file

@ -46,6 +46,10 @@ export abstract class EngineControllerBase<T extends RoomEngineBase> {
const engineEvents = new EventEmitter<RoomEngineBaseEvents>();
engineEvents.on('loadingProgress', ({ progress }) => {
this.initializeProgress.value = progress;
});
if (this.options.workerMode) {
const offscreen = canvas.transferControlToOffscreen();
this.worker = await params.createWorker(offscreen);
@ -118,10 +122,6 @@ export abstract class EngineControllerBase<T extends RoomEngineBase> {
}
}
engineEvents.on('loadingProgress', ({ progress }) => {
this.initializeProgress.value = progress;
});
this.canvas.addEventListener('keydown', (ev) => {
if (this.worker != null) {
this.worker.postMessage({ type: 'input:keydown', ev: { code: ev.code, shiftKey: ev.shiftKey } });

View file

@ -13304,7 +13304,7 @@ export interface Locale extends ILocale {
*/
"failedToInitialize": string;
/**
*
*
*/
"crushed_description": string;
/**
@ -13330,7 +13330,7 @@ export interface Locale extends ILocale {
*/
"revertAllChangesConfirmation": string;
/**
* MisskeyRoomを起動できません
* MisskeyRoomを起動できません
*/
"yourDeviceNotSupported_title": string;
/**