I have been trying to diagnose the cause of lagging, stuttering videos and poor video call performance for quite some time now.
In the past, everything worked smoothly. I can't recall when it started to lag, and therefore I can't determine the exact (if there even exists a single cause) critical update.
The machine is core i7, 32GB RAM, NVIDIA RTX 2080 Ti.
OS is Ubuntu 22.04.2 LTS, kernel is 6.2.1-060201-generic
Below is the graphics card driver info:
+---------------------------------------------+
| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 ... Off | 00000000:01:00.0 On | N/A |
| 0% 32C P8 4W / 260W | 62MiB / 11264MiB | 6% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+---------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2120 G /usr/lib/xorg/Xorg 61MiB |
+---------------------------------------------+
And this is the example of current htop optput. Right now, when I am typing, there is also a lag - there is a delay between pressing a keyboard and the letter appearance on screen.

I would appreciate any suggestion about how to fix the issue(s) that are causing lagging.