NyaomiDEV / Sunamu

Show your currently playing song in a stylish way!
Mozilla Public License 2.0
404 stars 15 forks source link

Use `backdrop-filter` over `filter` for background #4

Closed SudoVanilla closed 2 years ago

SudoVanilla commented 2 years ago

With filter, the framerate seems to drop when the background is changing: https://cdn.korbsstudio.com/2022-01-15%2019-36-56.mp4 (Dead link)

With backdrop-filter, seems more smooth with no frame drop: https://cdn.korbsstudio.com/2022-01-15-19-35-58.mp4 (Dead link)

Usually adding something basic to CSS should help, kinda like:

.background::before {
     position: fixed;
     top: 0px;
     left: 0px;
     width: 100%;
     height: 100%;
     backdrop-filter: blur(64px) brightness(50%) saturate(150%);
}
NyaomiDEV commented 2 years ago

I cannot really see your first video! Please upload it again

SudoVanilla commented 2 years ago

Link fixed

NyaomiDEV commented 2 years ago

I need more information on this. Switching filter (current element) with backdrop-filter (everything below this element) seems like a counterintuitive method to "optimize stuff"; this, plus I never actually had any slowdowns in any of my browsers and machines, so I am much more inclined to believe that hardware acceleration is not really working well on your setup.

Can you please share your setup? Linux distro details, Sunamu version (including the package type -- AppImage, AUR, etc.), and a bit of your hardware info.

Of course, Windows related issues are unsupported at this moment even if they merely relate to performance.

SudoVanilla commented 2 years ago

Hardware

Software

Other Information

I was switching between DEs and distros at the time on a spare machine of mine, runs pretty smooth on Pantheon, which is surprising since Pantheon can be heavy by itself. As for LXDE, that DE alone was too laggy on it's own. I'm currently converting this machine into a dashboard with Sunamu running on a secondary monitor.

NyaomiDEV commented 2 years ago

Could you try to run Sunamu "as natively as possible" eg. via DEB or straight from (tagged v1.3.1) source?

SudoVanilla commented 2 years ago

Yeah, did some digging, seems the computer has issues with hardware acceleration nowadays. Back then it handled a lot just fine as it was my primary machine. I think I'll close the issue then, but backdrop-fitler did act smoother for me with bad hardware acceleration.

NyaomiDEV commented 2 years ago

Yeah, did some digging, seems the computer has issues with hardware acceleration nowadays. Back then it handled a lot just fine as it was my primary machine.

There it is! RIP AppImage :C

I think I'll close the issue then, but backdrop-fitler did act smoother for me with bad hardware acceleration.

Yeah........ let's just not go ahead of ourselves here... Closing for now.