-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Enabling lightlyshaders makes plasma laggy #6
Comments
Please make sure that you have pulled the latest changes from the master branch, rebuilt and reinstalled the effect. The commit you are referencing to is not relevant any more, because now the effect uses entirely different approach to restore shadows. Though it may need some optimization anyway. I'll look into it next week. |
Hi, thanks for this fix. I have pulled the latest changes, and rebuilt/reinstalled the effect. |
@hellojaccc Please, check if the latest changes in master branch make any difference for you in performance. |
Thanks for this amazing effect. It doesn't fix the performance for me :( it's possible that my gpu isn't powerful enough since i use iGPU. |
Well, that's a pity. However, I have some more ideas how the performance could be enhanced. I'll try that in a few days and if anything of it will make a measurable enhancement, I'll push it to this repo. |
@hellojaccc I've added some more optimizations in the last commit. Can't say that it introduces significant difference on my machine, but seems that it is all we can do when using this approach of restoring shadows, unfortunately. |
Hi, i have the same performance problem as @hellojaccc . I'm running it on my Kubuntu 21.10 in VMWare with 3D acceleration enabled (well, cannot expect much from VM) but in one of your old commits the performance is more better than right now. I built and ran your old commit in my Debian Testing (bookworm) on VMWare with 3D acceleration enabled (about November 12/14 ago), and the performance was good even it's on VM. I try to move the binaries that i built on my Debian VM to Kubuntu VM and replacing it, and turns out the performance is better. The old commit source code was accidentally removed on my Debian VM, so i just have the compiled binaries. This is the config interface of old commit that i talked about: Maybe the performance hit is because of different approach to restore shadows? |
@sevenzerotwo Did you try the latest version with all the optimizations that I did a couple of days ago? If you did and It couldn't solve the performance problem for you, you can checkout the commit 3f1b370, it is the last commit when the effect used the previous approach of shrinking shadow. |
@a-parhom Yes, i just pulled the git for building again about hours ago and the performance didn't work well. Seems like for now i would try the last commit you mentioned. Thank you and also thank you for your work, it's amazing! Hope the performance could improved on new approach of shrinking in the future. @hellojaccc maybe you could try build the commit mentioned by parhom if you still having the issues |
Thank you so much. i built from the mentioned commit, and it works much much better! (actually, i don't feel any slowness) |
I've rewritten the plugin so that all the shadow restoration stuff is happening inside the shader itself, on the GPU. The textures now are not converted to images and back. I can see better performance on my hardware. You can try to compile from branch "performance_optimizations". I'll test that myself for some more time and merge it to master. |
I compiled the branch and the corners had black squares. Additionally, kwin still stutters, so I'm not certain I notice any performance difference. |
Did you have any error messages in console after KWin restart? Also, could you please tell me some more info about your system? What video card do you have, what Plasma version and video drivers do you use? Is that on X11 or Wayland and do you have hidpi monitor? For now I can't reproduce your problem on any of my machines. |
I've pushed some more improvements to the "performance_optimizations" branch. Now the plugin processes only visible regions of windows and skips everything that is hidden beneath other windows or is not on the active virtual desktop. Still needs some testing, so not merging to master at this point. |
Hi there, thanks for getting back so quickly. For specs: I have a dual Monitor setup, my primary monitor is 240hz and secondary is 75hz. Both are 1080p, nothing hidpi and no scaling of any sort. I am using the X11 session, not Wayland, and the only configuration I have on X is enable TearFree with the xf86-video-amdgpu driver. This allows kwin to render at the FPS of the primary monitor rather than sync to the slowest monitor, without having tearing on the slower monitor. The system has 32GB of DDR4-3200MT/s. I am running Arch Linux (btw) with KDE Plasma 5.23.5, however I'm using kwin_lowlatency instead of kwin itself. I can still reproduce some stutter if I really try to stress the system. I don't consider it bad enough to not use the effect anymore however, because you really have to try, but for the sake of mentioning it I'll describe how to reproduce it.
A couple points to mention:
Anyhow, from regular usage I don't notice any issues, so thanks so much for all the effort :) |
Thank you for your report! |
Seems to be rather stable now. Merged all changes to master. |
I'll get to testing the new changes on master asap |
@hellojaccc @sevenzerotwo Please, try the latest changes in master branch. |
It's a known issue (#15), I'll see what can be done, in a week, maybe. |
Issue #15 is closed. |
Unfortunately, even with a fairly powerful GPU (RTX 2070 Super), LightlyShaders still has a noticeable impact on KDE's performance when several applications are opened (i.e. Libreoffice, a couple browser tabs, and Dolphin). |
Did you make sure to pull the latest changes from the master branch? It has a bunch of optimisations. In any case, the effect has to use graphics resources to restore shadows in the cut out regions and that can be laggy. For now it looks like there's nothing else that can be improved in terms of performance. That's why I keep this issue open, sorry. |
By the way, it looks weird that you are having all that performance issues with RTX 2070. I have GTX 1060 and don't have any problems with performance at all. Are you sure you have your video drivers set up properly? |
I'm on 510.47.03. As far as I know, everything should be set up properly, since things like games work fine. From what you said on the other issue I posted, however, it seems like I'm probably having issues because I almost always have windows on the screen edges, or maximized. (I'm using the version from the AUR which was updated 3 days ago, so I think I'm on the current build.) |
Yes, that's the most likely cause of performance hit. I'll try to improve the algorithm used for rejecting processing of hidden areas to correctly work with maximized windows. Maybe in a week or two. |
I'll close this as main optimizations have been made and the performance is really not so bad now. |
Enabling lightlyshaders effect makes animations laggy when lot of windows are open.
openSUSE Tumbleweed
Probably related:
76fb7e1
The text was updated successfully, but these errors were encountered: