Some optimizations to main display loop