Add swap_interval support.

Again, mostly useful for 120Hz monitors, and/or playing content which is
a fraction of monitor refresh rate.