cdgriffith / FastFlix

FastFlix is a free GUI for HEVC and AV1 encoding, GIF/WebP/AVIF creation, and more!
MIT License
1.07k stars 54 forks source link

Adding directory takes anourmous amout of time and eats 16GB+ RAM #514

Open gxcreator opened 10 months ago

gxcreator commented 10 months ago

RAM never returned back to OS even after files added.

orithecapper commented 9 months ago

true

cdgriffith commented 7 months ago

The ram issue should be better in 5.5.7 and onward.

Doing a look through code there are a lot of optimizations that could be made for multiple file loads. As it was designed from the start for one video at the time, consideration was never taken into account for doing a lot at once. It will be a larger effort and will break it down into steps.

First goal will be to disable the update of Info and Debug screens for each load of the video. Then option to disable HDR10+ detection, as well as some optimization to running that script. The biggest improvement and hardest will be queue system improvements, as right now it deletes all the items in the queue and re-creates them each time a video is added (for safety / sync reasons). Will need to change how that works entirely.