-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyprpaper uses too much memory #143
Comments
your pictures are compressed. Hyprpaper has to keep them in memory uncompressed. 33.2MB sounds like a 4K+ image. It's not recommended to preload that many images. |
Yes, I'm using 4k resolution. Well, that make sense now, thank you. I guess that would be a good idea to put that into Readme.md, to clarify a bit about memory allocation, cause current version is a bit misleading for dumb people like me. |
feel free to make a MR to clarify parts that are unclear to you |
Okay, now I'm really curious. You said in MR that 4k image is 33.1MB uncompressed, then where 2gb coming from? 33.1 x 11 should be just ~364mb, right? |
correct. What are the resolutions of the images? |
Each preloaded image has own resolution, from 12288 × 8192 of the biggest one to 223 × 226 of the lowest one. |
that's... odd. I don't understand either. |
It looks like no matter what, hyprpaper will just allocate same amount of memory per image (like there another 16k? screen), even if I preload 11 1x1 black png's it still will be 1.8GB (as staited before, 132.7mb per each loaded image). |
Seeing similar behaviour:
These wallpapers are no more than 250kb on disk. |
Disabled fractional scaling because my wallpaper was really blurry (wallpapers are 4k as my native monitor resolution).
Still high but a little better. |
buffers have to be uncompressed. The fact your 4K wallpaper is a compressed-to-fuck jpeg doesn't matter. |
I understand, but 530MB for 4 preloaded 3840x2160 wallpapers still seems excessive, no? |
yes, should be 130MB |
According to the guide, preloading should take "This can result in around 8 - 20MB of mem usage", but for me hyprpaper uses around 1.8gb, what is kinda weird, especially after I looked into logs:
As you can see, every picture reserving a lot of memory. Weird amount aside, why it's same number? Also, all pictures combined weight ~145mb. So I tried removing some pictures from preload, and that did nothing:
Same size for each preload, lower amount simply because there not a lot to preload. Changing scaling will remove "Shared Memory usage: 132.7MB" row and there will be only "Shared Memory usage: 33.2MB" one, but memory allocation still same according to used memory.
Same result from hyprpaper-0.6.0-3 from arch repos and fresh version from git, currently: hyprpaper-git-0.6.0.r8.g09c40626-1
The text was updated successfully, but these errors were encountered: