Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
7.17k stars 383 forks source link

Application eventually starts slowing down #614

Open ghost opened 2 years ago

ghost commented 2 years ago

I downloaded Pixelorama yesterday and used it but observed that after sometime it starts being unresponsive, like mouse moves long after I actually move it or clicks happen after a long time. Initially when it's freshly opened, there's no problem but after like working on it for 10-20 mins it's starts doing this.

I'm using Pop!_Os and I have Intel i-3 3rd gen processor, Intel Integrated 2500 HD Graphics and 10GB RAM

OverloadedOrama commented 2 years ago

I suspect this happens because of memory usage that keeps increasing. I identified an issue where all of the project data will be kept in memory even after the user has clicked to remove the project's tab, which effectively means that memory usage keeps going up after you create or open a project and it will never go down until you close the app. This issue has now been fixed (750fae4713f3baf6b3cb824834a49edbf01e505b) and the fix will be included in v0.9.1.

That being said, I think there is still some room for improvement so I will keep this issue open. Most notably some orphan nodes related to layers being kept in memory. Maybe we could also improve the undo/redo system as well. Exposing settings to limit the amount of undos to the user would be useful.

OverloadedOrama commented 2 years ago

Further improvements have been made to memory management in 48326900d9d9f0b32fd435e56fd5a39bbf13fa36, which will be included in version 0.9.2. There should be no memory leak coming from leftover nodes now. Still, I'm not entirely sure if this will solve your problem, so I will keep this issue open for now, until someone confirms that the issue is resolved in v0.9.2, or in a Nightly build.

Bug-Ninja commented 2 years ago

I have version 0.9.2-stable and running linux mint. I am experiencing some serious performance issues, indeed getting worse the longer I work in Pixelorama. I even had to deal with my first linux mint freeze today...

Not sure what the cause is.. Memory wise I don't see a problem, but I notice the Xorg-process is asking a lot from the cpu. In GIMP xorg cpu- demands get higer as well, but not as much as pixelorama. If I can help in any way, please let me know. I have no idea how to get a log which might help you.