Add setting for using double_buffer