-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Improve performance of --blur #129
Comments
I'll also see if I can use |
I think the parallelizing does mostly account for reducing the blur times to linear. I'll give this a crack this weekend. |
OK I think I found out the issue. The amount of passes
With the above amount of passes, |
I tried adding the openmp pragma as well (appending Maybe there's some way to make
|
If it's useful to someone, I'm doing the blur manually as follows:
|
Downscale the resolution of the screenshot before blurring & upscale back to it's original resolution after blurring |
@AladW I'm now maintaining this repo, but I have zero experience with blurring. Can you draft a PR with what you have above? I'd be more than happy to merge it. |
Sure, but I don't know how useful it would be to |
@AladW What would you suggest then? Also if you don't mind updating the Arch Community package it would be great. |
I'm not familiar enough with image processing or the I suppose adding something to the README could be added that |
I've created PR #152 which might help with this. It allows you to set a transparent background color, and if you use compton with blur enabled, you can let it do the blurring. It's noticeably faster, and you get "true" transparency (stuff in the background is still updated and not "frozen"). |
@bendardenne By doing an alpha-color overlay, wouldn't there not be any blur though? |
Here's a short recording of what it looks like with color = 000000BA which adds some dimming as well: https://youtu.be/Um3ArF4UQgI The flickering is a recording artefact, doesn't actually happen IRL. On this setup (4k screen + laptop monitor, not pictured) |
Use 4-byte -c option to allow compositors to use translucency as an alternate blurring method, thus speeding up blurring and allowing for dynamic background. Somewhat addresses #129.
This issue is a....
Current Behavior
i3lock -B
gets increasingly slower as the blur radius is increased. On my system (off-the-mill Core i5 with integrated graphics):Expected Behavior
A related discussion occured in meskarune/i3lock-fancy#6, where the last comment advertised https://github.com/yvbbrjdr/i3lock-fancy-rapid. Using 3 blur passes, I have the following results:
In summary, the "rapid" implementation seems to have constant complexity, while the
i3lock-color
seems to have exponential complexity.I haven't studied the code in detail, but one step is the use of the
openmp
pragma:https://github.com/yvbbrjdr/i3lock-fancy-rapid/blob/master/i3lock-fancy-rapid.c#L15
Reproduction Instructions
I used
time
for the above results on an updated (July 08) Arch Linux system.Environment
Output of
i3lock --version
:Where'd you get i3lock-color from?
The package which I maintain in the Arch Linux
[community]
repository.The text was updated successfully, but these errors were encountered: