Add double buffer to gleam.