sleep to reduce cpu usage, graphics context, state system implemented