Bug 436885 - High RAM consumption
Summary: High RAM consumption
Status: RESOLVED NOT A BUG
Alias: None
Product: Haruna
Classification: Applications
Component: generic (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-10 18:51 UTC by george fb
Modified: 2022-09-28 10:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
ram comparison (20.77 KB, image/png)
2021-05-10 18:51 UTC, george fb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description george fb 2021-05-10 18:51:06 UTC
Created attachment 138298 [details]
ram comparison

Someone posted your work on reddit and I decided to test it on my kde plasma. I loved the interface and the options that are already there, but then I realized that the RAM usage is way above what I expected for a video player.

Here is a small comparison of memory usage with three popular players. All are with a video of about 430 MB open.

haruna is consuming much more than smplayer, which also uses mpv as backend.
Comment 1 Elisha Daugherty Podagric 2021-05-10 23:57:37 UTC
Hi, thanks for bringing the issue here. The last few days were busy and I ended up forgetting.

As I understand it, does haruna not share the mpv process with other programs? Is that why it appears to consume more than other programs that also use mpv as a backend?
Comment 2 george fb 2021-05-11 19:30:55 UTC
> does haruna not share the mpv process with other programs?
Do you mean like smplayer where you have an mpv process started by smplayer?
If yes than that's because smplayer uses window embedding https://github.com/mpv-player/mpv-examples/tree/master/libmpv#native-window-embedding while Haruna uses render API https://github.com/mpv-player/mpv-examples/tree/master/libmpv#render-api

So when looking at smplayer memory usage you should count mpv's memory too.

And if you count the total memory, shared + not-shared, the difference will also be smaller.
Comment 3 Elisha Daugherty Podagric 2021-05-11 20:50:30 UTC
I understand. Thank you for the explanation!
Comment 4 Luigi Baldoni 2021-10-15 10:55:25 UTC
Unsure if related to this, but on plasma 5.18.6 haruna 0.7.2 sometimes locks the task bar and the latter is not always freed when haruna terminates.