Screen stutters when animation is fast

I’m having some problems.

  1. Screen stutters when animation is fast, e.g. maximize, minimize, close window.
  2. The welcome screen takes a long time to load
Operating System: Arch Linux 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.3-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2070/PCIe/SSE2
Manufacturer: Notebook
Product Name: NH5xAx

The screen lag problem only occurs when using the closed source driver, I tried to change to the open source driver before and the screen was smooth, but I couldn’t adjust the screen brightness (it always stayed at 100%), which was a huge detriment to my eyes, so I switched back to the closed source driver.

$ nvidia-smi
Thu Oct 17 17:03:54 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 2070        Off |   00000000:07:00.0  On |                  N/A |
| N/A   64C    P8             15W /  115W |     584MiB /   8192MiB |      2%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A       772      G   /usr/lib/Xorg                                  15MiB |
|    0   N/A  N/A      1119      G   /usr/bin/kwalletd6                              1MiB |
|    0   N/A  N/A      1174      G   /usr/bin/kwin_wayland                          90MiB |
|    0   N/A  N/A      1243      G   /usr/bin/Xwayland                               2MiB |
|    0   N/A  N/A      1312      G   /usr/bin/ksmserver                              1MiB |
|    0   N/A  N/A      1314      G   /usr/bin/kded6                                  1MiB |
|    0   N/A  N/A      1339      G   /usr/bin/plasmashell                           87MiB |
|    0   N/A  N/A      1352      G   /usr/lib/kactivitymanagerd                      1MiB |
|    0   N/A  N/A      1384      G   /usr/bin/gmenudbusmenuproxy                     1MiB |
|    0   N/A  N/A      1386      G   /usr/bin/kaccess                                1MiB |
|    0   N/A  N/A      1389      G   ...b/polkit-kde-authentication-agent-1          1MiB |
|    0   N/A  N/A      1391      G   /usr/lib/org_kde_powerdevil                     1MiB |
|    0   N/A  N/A      1397      G   /usr/lib/xdg-desktop-portal-kde                 1MiB |
|    0   N/A  N/A      1398      G   /usr/bin/xembedsniproxy                         1MiB |
|    0   N/A  N/A      1627      G   /usr/lib/DiscoverNotifier                       1MiB |
|    0   N/A  N/A      1722      G   /usr/bin/telegram-desktop                       1MiB |
|    0   N/A  N/A      2336      G   ...form-hint=auto --enable-wayland-ime          1MiB |
|    0   N/A  N/A      2387      G   ...seed-version=20241016-180655.929000        223MiB |
|    0   N/A  N/A      2619      G   ...bin/plasma-browser-integration-host          1MiB |
|    0   N/A  N/A      4249      G   /usr/bin/konsole                                1MiB |
|    0   N/A  N/A      5776      G   /usr/bin/systemsettings                        70MiB |
+-----------------------------------------------------------------------------------------+

If any information is missing to help determine the problem, please let me know.