By lag do you mean pan/rotate canvas or brush stroke performance? Make sure you’ve set Krita to use all the cpu cores in performance settings (CPU Limit in the Advanced tab).
You can set memory limit to higher than 50% as well.
If you mean that the lines don’t come out smooth you could try the Dynamic Brush Tool.