add optional triple buffering to see if this solves HiDPI/Retina problems