FWIW, the only sure ways of clearing up the tearing/flickering/lagging issue after sleep, for me at least, are:
1. Rebooting the system
2. disconnecting then reconnecting the HDMI connection
3. logging out then logging back in
hot corner sleep fix doesn't work for me. The system in question has the following specs:
* Gigabyte z77-wifi mobo
* Intel core i7-3770s
* EVGA gtx 1060 3gb
* 16GB g.skill RAM
* 256gb mushkin SSD
* macOS Sierra 10.12.5
* nvidia web driver 15f1 (latest as of writing)
Other than that the system works beautifully. All I had to do was to create the OS install USB stick using the latest Unibeast, install Sierra, reboot and finish off with Multibeast to install drivers for Realtek NIC and audio, install the latest pascal enabled nvidia web driver, then reboot. Followed the guide to fix iMessage/iCloud.
No complicated mucking with the config.plist file, no messing with adding obscure kexts. Very easy install, resulting in a great and blazingly fast hackintosh system!
Please nvidia fix the problem in the next update!
S