You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I've found that your importer may generate a lot of garbage in RAM.
You can try loading the small demo image attached (256x256 px) and check Unity's Profiler. Here is a screenshot where new AseFile(stream); takes more that 1 GB RAM when loading it.
Another issues that I've found that you create temp textures and leave them in RAM. For example, here is your GetFrame(int index) method where Texture2DBlender generates new textures. I've made a workaround with destroying textures:
Hi! I've found that your importer may generate a lot of garbage in RAM.
You can try loading the small demo image attached (256x256 px) and check Unity's Profiler. Here is a screenshot where
![image](https://user-images.githubusercontent.com/7318172/142773123-bb61687d-70d6-4536-b070-958b82d38bd9.png)
new AseFile(stream);
takes more that 1 GB RAM when loading it.Another issues that I've found that you create temp textures and leave them in RAM. For example, here is your
![image](https://user-images.githubusercontent.com/7318172/142773201-f33a9fc9-6b79-4d6f-9308-e1901caf3d20.png)
GetFrame(int index)
method where Texture2DBlender generates new textures. I've made a workaround with destroying textures:Demo project: https://drive.google.com/file/d/147BEdQGPhsTpYh54UNZlx5C5zPCbWrV-/view?usp=sharing
The text was updated successfully, but these errors were encountered: