🆙 Place back Mem optimizing and Username to badge send

This commit is contained in:
duckietm
2026-04-14 11:36:15 +02:00
parent ca9236156b
commit fdb2f855b0
8 changed files with 60 additions and 3 deletions
+3
View File
@@ -314,6 +314,9 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
const canvas = GetRenderer().texture.generateCanvas(texture);
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;