Making SDK based buffer swap optional