🆙 Memory usage fixes

This commit is contained in:
duckietm
2026-04-10 11:42:30 +02:00
parent 37f817a098
commit 399999f23d
6 changed files with 48 additions and 1 deletions
+3
View File
@@ -315,6 +315,9 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
const url = canvas.toDataURL('image/png');
canvas.width = 0;
canvas.height = 0;
return url;
}
+6
View File
@@ -23,6 +23,12 @@ export class ImageData
public dispose(): void
{
if(this._container)
{
this._container.destroy({ children: true });
this._container = null;
}
this._texture = null;
this._regPoint = null;
this._colorTransform = null;