mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
90ea7902eb
commit
05a8dcf897
3 changed files with 12 additions and 0 deletions
|
|
@ -88,6 +88,10 @@ export abstract class EngineControllerBase<T extends EngineBase<EngineBaseEvents
|
|||
}
|
||||
};
|
||||
} else {
|
||||
//BABYLON.RegisterStandardEngineExtensions();
|
||||
//BABYLON.RegisterEnginesExtensionsEngineRawTexture();
|
||||
//BABYLON.RegisterCollisionCoordinator();
|
||||
|
||||
const babylonEngine = new BABYLON.WebGPUEngine(canvas, { doNotHandleContextLost: true, powerPreference: 'high-performance', antialias: this.options.antialias });
|
||||
babylonEngine.compatibilityMode = false;
|
||||
babylonEngine.enableOfflineSupport = false;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ import { RoomObjectPreviewEngine } from './previewEngine.js';
|
|||
let engine: RoomObjectPreviewEngine | null = null;
|
||||
let canvas: OffscreenCanvas | null = null;
|
||||
|
||||
//BABYLON.RegisterStandardEngineExtensions();
|
||||
//BABYLON.RegisterEnginesExtensionsEngineRawTexture();
|
||||
//BABYLON.RegisterCollisionCoordinator();
|
||||
|
||||
// TODO: 他のWorkerと実装を共通化
|
||||
onmessage = async (event) => {
|
||||
//console.log('Worker received message:', event.data);
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ import type { RoomAttachments } from './utility.js';
|
|||
let engine: RoomEngine | null = null;
|
||||
let canvas: OffscreenCanvas | null = null;
|
||||
|
||||
//BABYLON.RegisterStandardEngineExtensions();
|
||||
//BABYLON.RegisterEnginesExtensionsEngineRawTexture();
|
||||
//BABYLON.RegisterCollisionCoordinator();
|
||||
|
||||
// TODO: 他のWorkerと実装を共通化
|
||||
onmessage = async (event) => {
|
||||
//console.log('Worker received message:', event.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue