Speeding up rendering buffer swap