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
📝 Fixed some memory problems
RenderTexture leak in IsometricImageFurniVisualization, every direction change or thumbnail update leaked a GPU RenderTexture. Image object leak in FurnitureDynamicThumbnailVisualization, now clears callbacks and src after use. Image object leak in FurnitureBadgeDisplayVisualization, image objects never cleaned up
This commit is contained in:
+6
@@ -33,10 +33,16 @@ export class FurnitureDynamicThumbnailVisualization extends IsometricImageFurniV
|
||||
} else {
|
||||
this.setThumbnailImages(null);
|
||||
}
|
||||
image.onload = null;
|
||||
image.onerror = null;
|
||||
image.src = '';
|
||||
};
|
||||
|
||||
image.onerror = () => {
|
||||
this.setThumbnailImages(null);
|
||||
image.onload = null;
|
||||
image.onerror = null;
|
||||
image.src = '';
|
||||
};
|
||||
} else {
|
||||
this.setThumbnailImages(null);
|
||||
|
||||
Reference in New Issue
Block a user