On my Mac, I have 3 different Input Sources and after some time from rebooting, I'm starting to experience input lag when switching between input sources.
Here is a video - I press my shortcut to change the input source (as I see on the menu bar - it's switching immediately) and then I start typing rapidly.
Usually, this bug appears a few days after I restart my computer. For example, this happened today - uptime is 2 days.
For switching language I'm using Karabiner + MLSwitcher. Karabiner just maps Caps Lock to Ctrl+Shift and MLSwicher catches this combo and cycles through my input sources.
I think this is not a problem with Karabiner or MLSwitcher, because the language in the bar menu switches immediately after pressing the caps lock.
The application in which I switch languages also freezes for a moment.
Here is the video: https://cln.sh/MSLcl0mq