My mouse in-game is "jittery". The best way I can explain it is that game is running at full/normal FPS, but the mouse is updating at maybe 10 FPS. I.e. it jumps around the screen.
This does NOT happen if I have OBS Studio running and an an active source. Note: does not need to be recording/streaming, just needs to be visible.
System specs:
7800xt
5900x
64GB RAM
nixOS unstable
I tried recording a video of it in OBS... which is how I found out it doesn't happen with OBS running

I'm unsure if this is an X4 thing, a linux thing, a nixOS thing, or a my system/config thing. I've found a workaround that will suffice, though.