Revert "implemented double buffering"

This reverts commit 59d65b635e4ea320c49f20835cd161c78dc716e3.