public void FlipBuffers() { lock (FlipLocker) { RigidTransform[] formerFrontBuffer = states; states = backBuffer; backBuffer = formerFrontBuffer; } }