Make triple buffering and v-sync configurable