You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 Fix firework memory leak and update pixi.js
This commit is contained in:
+2
-10
@@ -1,6 +1,4 @@
|
||||
import { GetRoomEngine, RoomEngine } from '@nitrots/room';
|
||||
import { GetRenderer, GetTexturePool } from '@nitrots/utils';
|
||||
import { Texture, TextureGCSystem, TextureSource } from 'pixi.js';
|
||||
export { };
|
||||
|
||||
declare global
|
||||
@@ -9,17 +7,11 @@ declare global
|
||||
{
|
||||
NitroDevTools?:
|
||||
{
|
||||
roomEngine(): RoomEngine;
|
||||
textureCache(): TextureSource<any>[];
|
||||
texturePool(): { [index: string]: { [index: string]: Texture[] } };
|
||||
textureGC(): TextureGCSystem;
|
||||
roomEngine: RoomEngine;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
window.NitroDevTools = {
|
||||
roomEngine: () => GetRoomEngine(),
|
||||
textureCache: () => GetRenderer().texture.managedTextures,
|
||||
texturePool: () => GetTexturePool().textures,
|
||||
textureGC: () => GetRenderer().textureGC
|
||||
roomEngine: GetRoomEngine()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user