implement a trivial forecast of best swap buffer method
implement XShape support