Try texdroider dpi or similar apps. possible risk include boot loop and certain apps not displaying on Play. But you can always install xposed module play store fix in addition to remedy this. I've not tried the said DPI changer app on m8 so best to do a nandroid first.
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?