Try disabling both automatic graphics switching and enable power nap under battery and power adapter.
Path: System Preferences > Battery
Topic:
App & System Services
SubTopic:
Core OS
Tags: