You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 Place back Mem optimizing and Username to badge send
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user