kimai / kimai

Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud
https://www.kimai.org
GNU Affero General Public License v3.0
3.1k stars 543 forks source link

Disable animation #4486

Closed kevinpapst closed 6 months ago

kevinpapst commented 8 months ago

Describe the problem

Some users report that the UI was lagging, due to the complex CSS animations

Describe the solution you'd like

Add a per-user setting, that leads to adding a new CSS file, which deactivates the animations.

Solutions seems to disable animations: https://github.com/kimai/kimai/discussions/4415

Solution

I added it as example here https://www.kimai.org/documentation/plugin-custom-css.html

Bildschirmfoto 2023-11-09 um 15 46 02
aldas commented 7 months ago

That blur effect slowdown is also visible/affecting Brave and Firefox under Linux (Wayland+KDE/plasma window manager)

kevinpapst commented 7 months ago

It is at the same time funny and super annoying, that a CSS effect that works smoothly on a 5 year old mobile phone is able to slow down entire working stations. What the heck is so complicated about a blur effect?

Does that happen for Meet/Zoom/whatever video calls as well, when you activate blur?

aldas commented 7 months ago

I do not use Meet/Zoom or anything like that. so I can not comment on that. But I can comment that this slowdown seems to be related to Window size in my case. On 2560x1440 screen and Brave maximized it feels way slower than when I resize window to 30% size and then open modal in Calendar.

p.s. "fade in" transition time makes it feel psychologically worse. Is it 150ms? it feels way longer.

kevinpapst commented 7 months ago

I did some research and it seems that this is slow since it was introduced into the CSS world. Most machines seem to be able to offload that calculation to the GPU and do not show this lagging.

My working machine is an iMac from 2017 and I never had any issues. My mobile phones (here some older Samsung and iPhone) don't have any issues with the backdrop as well, but the modal is maximized there, so this might not count as well. Some older and newer Macbooks don't have any issues, same as many Windows machines I have seen.

Until now only a handful of people reported this issue. Honestly, and I am saying that even though I used Ubuntu for multiple years as desktop environment myself: Linux and "Windows remote computers" are just edge cases.

Anyway: I am already working on removing the blur altogether. It is looking good, but not worth any more trouble...

github-actions[bot] commented 3 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please share your experience with the community and leave a testimonial to support Kimai.