switched graphics to double-buffer.