加入双缓冲。

Signed-off-by: cyberzhg <cyberzhg@gmail.com>