First, this bad lag disappears after a few reboots in my experience.
Second, there's SuperSU if Magisk isn't working for you, this has been discussed before (search is awesome).
Third, same goes for Viper, been discussed extensively.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer? | Terms of Service