Double-frame buffering implementation